Commit 5c92cc38 authored by Jake Read's avatar Jake Read

add flourish

parent 62a8ce29
......@@ -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);
......@@ -198,8 +217,12 @@ 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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment