webnovel

The Inverse Method of Calculating Arrays

2026-08-07 12:54
2026-08-07 17:31

The programming principle of the determinan-keyboard reversal method was as follows: First of all, the value of the button was obtained by assigning values to the port of the single-chip computer twice. For example, take the low four bits of the single-chip processor port (such as the P1 port) as the row line and the high four bits as the column line. 1. The first time you assign a value of 0x0f (00001111) to the port, if a key (such as the 0 key) is pressed, the actual value of the port will change (such as 00001110). 2. Then, he assigned the port a value of 0xf0 (11110000). If the 0 key was pressed, the actual value of the port would become 11100000. 3. By adding the actual values of the two ports (such as 11101110, or 0xee), you get the corresponding value when you press the 0 key. By analogy, the corresponding values of other keys could be obtained, and this corresponding relationship could be established to solve the algorithm problem in matrix keyboard programming. In programming, the following operations were generally required: 1. define variables, such as variables that represent key values and variables used for loop counting and other purposes. 2. The key detection operation was performed, assigning a value to the port and detecting whether the port value changed to determine whether a key was pressed. For example, after assigning an initial value of 0x0f to the port, it would detect whether the values of the lower four bits have changed (if there is a key press, the values of the lower four bits will change). If there is a change, there may be a key press, and then an appropriate delay (used for anti-shake processing) would be performed. Then, it would be detected again to confirm that there is a key press and obtain the values of the lower four bits. Then, it would assign a value of 0xf0 to the port and detect whether the values of the upper four bits have changed. If there is a change, it would be delayed and tested again to confirm and obtain the values of the upper four bits. 3. By looking up the table (the corresponding table of key values established in advance) to obtain the corresponding values of the keys or the contents to be displayed, and then perform the corresponding operations, such as displaying the corresponding key values on the digital tube. It should be noted that the specific programming should be adjusted according to the type of single-chip processor used and the grammar rules of the programming language. At the same time, programming was only for research and learning purposes. It was strictly prohibited for commercial purposes. Read more exciting novels for free

Latest Questions

How to use words to describe the cup of wine

One could use " small " to describe a wine cup. As a small cup used for drinking wine, the word " small " could reflect its small and exquisite characteristics. It could also be described as " exquisite ". Many wine cups had unique craftsmanship, shapes, or decorations, such as the agarwood carved Panxia Gaoshi wine cup." exquisite " could show its exquisite production. It could also be used to describe the state of the wine cup when it was filled with wine. In addition,"quaint" could also be used to describe wine cups. Some wine cups had ancient historical and cultural heritage, and this word could reflect their simple and elegant temperament. The novel, Drunken Golden Cup, is equally exciting. Everyone is welcome to click and read it!

1 answer
2026-08-14 22:38

Li Feiyu ascended to the Immortal World

Li Feiyu was only a mortal in his first life. He had met Han Li in the Seven Mysteries Sect, and Han Li had often used Li Feiyu's name to do things. After Han Li became the invincible Celestial Venerable Han of the Immortal World, he used the Heaven Sovereign Vase to return to the past, giving Li Feiyu the opportunity to reincarnate and cultivate. He was reincarnated as Li Feiyu, and tens of thousands of years later, Li Feiyu succeeded in his cultivation and ascended to the Beihan Immortal Domain. While waiting for the TV series, you can also click on the link below to read the classic original work of " A Record of a Mortal's Journey to Immortality "!

1 answer
2026-08-14 22:37

There are three things that psychics hate the most

The things that a psychic hated the most might include masculinity and righteousness, because evil could never win over good. When righteousness was sufficient, evil would be afraid. Sunlight might also be hated by a psychic, because sunlight could increase a person's yang qi and drive away evil yin. Things given by parents might also make a psychic afraid. The qi of yang of kinship could turn into a fire, making evil dare not approach. Hurry up and click on the link below to return to the super classic " Lord of Mysteries "!

1 answer
2026-08-14 22:37

A brief introduction of Xuantian Cave in Guiyang

Xuantian Cave was located at the foot of Nanwang Mountain, 8 kilometers east of Xifeng County, Guizhou Province. It was a natural karst cave. The top of the cave was 15 meters high, 54 meters wide, and 130 meters deep. The total area of the cave was 3400 square meters. It became famous at the end of the Ming Dynasty. At that time, Sichuan Taoist traveled here for half a month. He thought it was a good place to cultivate immortal cultivation. He asked people to build two small houses in the cave and cover them with bark. It was named Mupi Nunnery. It was also called the Xuan Emperor Temple because it was dedicated to the Great Emperor Xuanwu (Zhenwu Great Emperor). Since then, the incense in Xuantian Cave flourished day by day and continued to expand. At its peak, there were more than 30 houses in the cave, including 5 Jade Emperor Palace, 3 Three Official Halls, 7 Upper Halls, 3 Lower Halls, etc., and dozens of statues were worshipped. During the Anti-Japanese War, Xuantian Cave became one of the prisons of Xifeng Concentration Camp. From 1938 to 1946, General Yang Hucheng and his family were secretly imprisoned here for nearly eight years. From a distance, Xuantian Cave looked like a mountain with a mouth open. From the inside, it looked like a pot with an inverted lid. At the entrance of the cave, there was an ancient Camphor tree that was more than 500 years old and still luxuriant. In front of the cave and inside the cave, there were Jade Emperor Hall, Sanqing Palace, Earth Mother Temple and other buildings built since the Ming Dynasty. Moreover, the height difference between Xuantian Cave and the bottom of the valley was 103 meters. There was a small stone path, and after 2000, more than 570 stone stairs were built. In addition, about 300 meters away from the Xuantian Cave, a 300-meter-deep karst cave was discovered. There was a stalactite in the cave that looked like an old woman, which was honored as Mother Earth. There was a temple in front of the cave, and at the foot of the mountain, there was a temple for the Taoist Sanqing Temple called Sanqing Palace. This place was also called "Tadao Temple"(later renamed "Tajiao Temple").

1 answer
2026-08-14 22:37

Tattooed male internet singer

The reference mentioned that Adam Levin was a male singer with many tattoos. Justin Bieber, Ed Sheeran, Harry Stiles, Jahan Malick, and others were also European and American male singers with tattoos. Li Ronghao was a male singer with tattoos. These singers used tattoos as a part of their personal image and style. They used tattoos to show their personal style and personality, or to have the story and meaning behind the tattoos. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>

1 answer
2026-08-14 22:36

Are the Olympic Fuwa five devils?

This statement was completely wrong and disrespectful. The Fuwa were the mascots of the 2008 Beijing Olympic Games. They were shaped like fish, pandas, Tibetan antelopes, swallows, and the Olympic flame. They were named Beibei, Jingjing, Huanhuan, Yingying, and Nini respectively. They meant "Beijing welcomes you" and represented China's welcome to the people of the world as well as the positive significance of the Olympic spirit. While watching the Olympics, you can also read the wonderful novels related to the Olympics!

1 answer
2026-08-14 22:36

Who is the Angel of Redemption under the Lord of the Mysteries?

The Angel of Salvation under Lord of Mysteries was Gehrman Sparrow. He was The Fool's Blessed, the master of the nesting dolls, the protector of Backlund's magic and theater performances, and the protector of all the poor children in Backlund. Klein entered the Forsaken Land of the Gods as Gehrman and led the City of Silver and Moon City to the new world. In the eyes of the City of Silver, he was an angel of great importance. Hurry up and click on the link below to return to the super classic " Lord of Mysteries "!

1 answer
2026-08-14 22:36

The beginning of an essay about the Black Myth Wukong

Ever since Black Myth: Wukong was released, it was like a shining star in the gaming world and even the cultural world. It was not just a game, but also a cultural product that contained rich cultural content, profound philosophical thinking, and a fascinating story line. Judging from the style of the images, it was a grand tribute to traditional China aesthetics. The antique scenes and vivid characters seemed to bring the players into a dream-like mythical world. In terms of the background of the story, it was based on the classic masterpiece, Journey to the West, but it had carried out bold innovation and expansion, allowing us to see a familiar and strange world of Wukong. In this world, what we see is not only Wukong who vanquishes demons in the traditional sense, but also a complex image that is endowed with more human struggles and destiny choices. This made us have to think deeply about the significance of Black Myths: Wukong in cultural heritage, revealing humanity, and the development of modern games. Not satisfied with the game? You can read the novel related to Black Myth: Wukong to understand the exciting plot!

1 answer
2026-08-14 22:35

What is the name of Eason Chan's League of Legends children's song?

Eason Chan was singing a children's song related to League of Legends called "Lonely Hero." This song was the Chinese theme song for the cinematic of League of Legends: Battle of the Twin Cities. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>

1 answer
2026-08-14 22:35
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z