Permalink
Browse files

updated sketch to print entire RAM and clearly show text

  • Loading branch information...
1 parent 959c647 commit 7a4015f8b70e55aa7a63d4035e0b9408eb4a6860 Quin Kennedy committed Nov 3, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 README.md
  2. +1 −1 print_memory/print_memory.ino
View
@@ -1,4 +1,4 @@
-Video here: https://vimeo.com/52733799
+Video here: https://vimeo.com/52734448
--------------------------
This is a little project to print "LinkedList NYC". Official rules below
@@ -23,8 +23,8 @@ RUNNING
OVERVIEW
======
-I start with a minimal (3-byte) description for each letter. Then I kick off a recursive method that renders each letter as 16 times its original size (in memory). These blown-up versions are placed in a linked list on the heap. At the end I print the linked list memory block in the heap as a bitmap.
-(NOTE: there is also a version tagged 'stack' which renders the text on the stack instead of as a linked list on the heap, I enjoy that output because it shows all the return pointers and method overhead along with the desired text)
+I start with a minimal (3-byte) description for each letter. Then I kick off a recursive method that renders each letter as 16 times its original size (in memory). These blown-up versions are placed in a linked list on the heap. At the end I print the entire 2k RAM of the Arduino UNO, and in the midst of the data you can see "LinkedList NYC" clearly printed.
+(NOTE: There is also a version tagged 'stack' which renders the text on the stack instead of as a linked list on the heap. That version is nice too since it shows all the return pointers and method overhead along with the desired text.)
OTHER
======
@@ -19,7 +19,7 @@ void setup(){
initChars();
printer.begin();
node *root = setList("LinkedList NYC", 14);
- printer.printBitmap(4*8, 14*4*4+14, (uint8_t*)root, false);
+ printer.printBitmap(4*8, 2000/4, (uint8_t*)(((int)root)%4), false);
printer.feed(2);
}

0 comments on commit 7a4015f

Please sign in to comment.