Fork of the original NeoPixel repository.
Revision 1:c00a57df399b, committed 2020-04-18
- Comitter:
- dstarke
- Date:
- Sat Apr 18 18:28:52 2020 +0000
- Parent:
- 0:a81364d9a67b
- Commit message:
- Replaced use of compiler specific __nop() command with compiler unspecific __NOP() command.
Changed in this revision
neopixel.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/neopixel.cpp Tue Mar 21 21:17:08 2017 +0000 +++ b/neopixel.cpp Sat Apr 18 18:28:52 2020 +0000 @@ -16,17 +16,17 @@ // duty cycle determines bit value if (byte & 0x80) { // one - for(int j = 0; j < 6; j++) __nop(); + for(int j = 0; j < 6; j++) __NOP(); gpio_write(&gpio, 0); - for(int j = 0; j < 2; j++) __nop(); + for(int j = 0; j < 2; j++) __NOP(); } else { // zero - for(int j = 0; j < 2; j++) __nop(); + for(int j = 0; j < 2; j++) __NOP(); gpio_write(&gpio, 0); - for(int j = 0; j < 5; j++) __nop(); + for(int j = 0; j < 5; j++) __NOP(); } byte = byte << 1; // shift to next bit