This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
# Defaults | |
[*] | |
indent_size = 4 | |
indent_style = space | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
[*.{xml,js,ts,json,*proj,targets,html,props,nim,nimble,nim.cfg}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define LED_WHITE PIN_A1 | |
#define LED_GREEN PIN_A0 | |
void setup() { | |
pinMode(LED_WHITE, OUTPUT); | |
pinMode(LED_GREEN, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(LED_WHITE, HIGH); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FlashAsyncToken(AbortToken): | |
def __init__(self, color, times=1, time_on=0.1, time_off=0.1, abort_token=None): | |
super().__init__() | |
self.color = color | |
self.counter = 0 | |
self.times = times | |
self.time_on = time_on | |
self.time_off = time_off | |
self.parent = abort_token | |
self.__alarm = Timer.Alarm(self.__light_on, us=5, periodic=False) |
NewerOlder