Skip to content
Snippets Groups Projects
Commit 5c92cc38 authored by Jake Read's avatar Jake Read
Browse files

add flourish

parent 62a8ce29
Branches
No related tags found
No related merge requests found
......@@ -69,6 +69,25 @@ void lights_init(void){
pin_set(&up5stlr);
}
void lights_flash(void){
// yikes!
pin_toggle(&stlTicker);
pin_toggle(&stlPacket);
pin_toggle(&stlErr);
pin_toggle(&up0stlb);
pin_toggle(&up0stlr);
pin_toggle(&up1stlb);
pin_toggle(&up1stlr);
pin_toggle(&up2stlb);
pin_toggle(&up2stlr);
pin_toggle(&up3stlb);
pin_toggle(&up3stlr);
pin_toggle(&up4stlb);
pin_toggle(&up4stlr);
pin_toggle(&up5stlb);
pin_toggle(&up5stlr);
}
void uarts_init(void){
// don't forget to also add the handler
NVIC_EnableIRQ(SERCOM0_0_IRQn);
......@@ -199,7 +218,11 @@ int main(void)
// a ticker to look for hangouts
SysTick_Config(8000000);
uint8_t testUart[3] = {12,24,48};
for(int i = 0; i < 600000; i ++){
if(!(i % 190000)){
lights_flash();
}
}
while (1)
{
......@@ -222,7 +245,6 @@ int main(void)
apaport_scan(&apap4, 2);
apaport_scan(&apap5, 2);
/*
while(!rb_empty(up0.rbrx)){
uart_sendchar_buffered(&up0, rb_get(up0.rbrx));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment