User Tools

Site Tools


notes:c4eng:fall2024:projects:ptb0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
notes:c4eng:fall2024:projects:ptb0 [2024/10/12 19:43] – [GPIO MODE SETTING] skephartnotes:c4eng:fall2024:projects:ptb0 [2024/10/12 19:43] (current) – [GPIO MODE SETTING] skephart
Line 5: Line 5:
  
 ====GPIO MODE SETTING==== ====GPIO MODE SETTING====
-In order to allow for the LED that is connected to the circuit to be turned on and off through the code of the program we need to change the mode of the pin that the LED is connected through, to output. We do this through the line of code "pinMode (LED, OUTPUT);". The "LED" factor in the parentheses is simply whatever variable name you assigned to the LED when you initialized it.+In order to allow for the LED that is connected to the circuit to be turned on and off through the code of the program we need to change the mode of the pin that the LED is connected through, to output. We do this through the line of code "pinMode (LED, OUTPUT);". The "LED" factor in the parentheses is simply whatever variable name you assigned to the LED pin when you initialized it.
 ====GPIO COMMAND-LINE TESTING==== ====GPIO COMMAND-LINE TESTING====
 ====wiringPi: digitalWrite()==== ====wiringPi: digitalWrite()====
notes/c4eng/fall2024/projects/ptb0.1728762209.txt.gz · Last modified: 2024/10/12 19:43 by skephart