aboutsummaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorjaseg <jaseg@jaseg.net>2014-02-17 01:53:08 +0100
committerjaseg <jaseg@jaseg.net>2014-02-17 01:53:08 +0100
commitec0233f756bd25232f1a5d5c88a758e6efed9c5a (patch)
tree4d8cdf337e5fe877105f2bdaacb290bb2daa1665 /firmware
parent18fd12e916c8a33007a8ccd305d280493e8cd27d (diff)
downloadmatelight-ec0233f756bd25232f1a5d5c88a758e6efed9c5a.tar.gz
matelight-ec0233f756bd25232f1a5d5c88a758e6efed9c5a.tar.bz2
matelight-ec0233f756bd25232f1a5d5c88a758e6efed9c5a.zip
Niiiice glitch art...
Diffstat (limited to 'firmware')
-rw-r--r--firmware/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/main.c b/firmware/main.c
index 945e0af..52b6360 100644
--- a/firmware/main.c
+++ b/firmware/main.c
@@ -54,10 +54,10 @@ unsigned const char const FUCKED_UP_BOTTLE_MAP[CRATE_SIZE] = {
};
unsigned const char const CRATE_MAP[CRATE_COUNT] = {
- 0x37, 0x35, 0x33, 0x31, 0x21, 0x23, 0x25, 0x27,
- 0x36, 0x34, 0x32, 0x30, 0x20, 0x22, 0x24, 0x26,
- 0x16, 0x14, 0x12, 0x10, 0x00, 0x02, 0x04, 0x06,
- 0x17, 0x15, 0x13, 0x11, 0x01, 0x03, 0x05, 0x07
+ 0x07, 0x05, 0x03, 0x01, 0x10, 0x12, 0x14, 0x16,
+ 0x06, 0x04, 0x02, 0x00, 0x11, 0x13, 0x15, 0x17,
+ 0x26, 0x24, 0x22, 0x20, 0x31, 0x33, 0x35, 0x37,
+ 0x27, 0x25, 0x23, 0x21, 0x30, 0x32, 0x34, 0x36
};
#define SYSTICKS_PER_SECOND 100
@@ -149,8 +149,8 @@ unsigned long framebuffer_read(void *data, unsigned long len) {
for(unsigned int x=0; x<CRATE_WIDTH; x++){
for(unsigned int y=0; y<CRATE_HEIGHT; y++){
unsigned int bottle = BOTTLE_MAP[x + y*CRATE_WIDTH];
- if(idx == 0x07)
- bottle = FUCKED_UP_BOTTLE_MAP[x + y*CRATE_WIDTH];
+// if(idx == 0x07)
+// bottle = FUCKED_UP_BOTTLE_MAP[x + y*CRATE_WIDTH];
unsigned int dst = bus*BUS_SIZE + (crate*CRATE_SIZE + bottle)*3;
unsigned int src = (y*CRATE_WIDTH + x)*3;
// Copy r, g and b data