Hunde.
[hackover2013-badge-firmware.git] / badge / main.c
index cb7966b..4e878f5 100644 (file)
@@ -65,6 +65,7 @@
 #include "drivers/fatfs/ff.h"
 
 #include "badge/pinconfig.h"
+#include <funk/nrf24l01p.h>
 
 #ifdef R0KET
 
@@ -203,11 +204,24 @@ int main(void)
   badge_init();
 #endif
 
-#ifdef HOB_REV2
-  gpioSetValue(HOB_PORT(HOB_LED_LEFT), HOB_PIN(HOB_LED_LEFT), 1);
-  systickDelay(1000);
-  gpioSetValue(HOB_PORT(HOB_LED_RIGHT), HOB_PIN(HOB_LED_RIGHT), 1);
-#endif
+  /*
+  nrf_init();
+
+  for(uint8_t i = 1; ; ++i) {
+    badge_framebuffer fb = { { { 0 } } };
+
+    fb.data[2][86] = 0xff;
+    fb.data[3][87] = nrf_read_reg(R_CONFIG);
+    fb.data[4][86] = 0xff;
+    for(uint8_t j = 0; j < i; j += 3) {
+      fb.data[3][j / 3] = 0xff;
+    }
+
+    SCB_CLKOUTCLKDIV = i;
+    badge_framebuffer_flush(&fb);
+    systickDelay(200);
+  }
+  */
 
   {
     //    f_mkfs(0, 1, 0);
This page took 0.023056 seconds and 4 git commands to generate.