11/29/2023 0 Comments Arduino programming language manualFor example, a digital sensor can be read. The int digitalread (PIN) digital IO port reads the input level function, and the PIN is expressed as 0~13,value as high or low. The Pinmode (PIN, mode) digital IO port input and output mode defines the function, the PIN is represented as 0~13, and mode is expressed as input or output.ĭigitalwrite (PIN, value) the output level of the digital IO port defines the function, and the PIN is expressed as 0~13,value as high or low. Void loop () continuous execution of statements within functions Void Setup () initialize variable, PIN mode, call library function, etc. The above is the basic C language of the key words and symbols, C language based on all should understand its meaning, there is no too much explanation. True | False true indicates true (1), False indicates false (0). INPUT | Output represents the direction of the digital IO port, input represents the inputs (high-impedance state), and output indicates the outputs (the AVR can provide 5 V voltage 40mA current). High | Low indicates the level of the digital IO port, high (1), and lower (0). ![]() ![]() ![]() In the time of contact with the Arduino DIYer, found that some friends of the Arduino language is still relatively difficult to start, then here I would simply comment on the Arduino language (I am also half a jar of water, the wrong place also ask you to correct). Arduino language Annotations The Arduino language is based on C + +, in fact, the basic C language, the Arduino language is only the AVR microcontroller (microcontroller) related to some parameter settings are functional, do not need us to understand his bottom, Let us not understand the AVR microcontroller (microcontroller) friends can also easily get started.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |