X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/a7be12a4e68fcaaa92f81a394bc316a592ec6270..ec12b916610c306899b385f5ccd5450e8a835fc2:/main.c diff --git a/main.c b/main.c index 703bf96..132f1fe 100644 --- a/main.c +++ b/main.c @@ -43,6 +43,8 @@ #include "core/gpio/gpio.h" #include "core/systick/systick.h" +#include "drivers/displays/segment/as1115/as1115.h" + #ifdef CFG_INTERFACE #include "core/cmd/cmd.h" #endif @@ -61,7 +63,23 @@ int main(void) uint32_t currentSecond, lastSecond; currentSecond = lastSecond = 0; - lcdTest(); + // lcdTest(); + + + // as1115Test(); + + uint8_t displaybuffer[8]; + + displaybuffer[0] = 0x01 | 0x80; + displaybuffer[1] = 0x02 | 0x40; + displaybuffer[2] = 0x04 | 0x20; + displaybuffer[3] = 0x08 | 0x10; + displaybuffer[4] = 0x10 | 0x08, + displaybuffer[5] = 0x20 | 0x04; + displaybuffer[6] = 0x40 | 0X02; + displaybuffer[7] = 0x80 | 0X01; + + as1115WriteBuffer(displaybuffer); while (1) {