that_one_nigga_you_k

arduino macro GPIO example

Aug 20th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #define aceso  PORTC |=  (1<<4)
  2.  
  3. void setup() {
  4.   // put your setup code here, to run once:
  5.     DDRB = 0b00001000;
  6. }
  7.  
  8. void loop() {
  9.   // put your main code here, to run repeatedly:
  10.   aceso ;
  11. }
Add Comment
Please, Sign In to add comment