Go Down

Topic: GICR |= (1<<INT0) (Read 3 times) previous topic - next topic


Hello ccdust,

My guess is that you need to add this to the top of your source code:

Code: [Select]

#include <avr/pgmspace.h>



I've got error vhen i use this code:
Code: [Select]
 const prog_uint8_t BitMap[5] = {   // store in program memory to save RAM

error says

error: 'prog_uint8_t' does not name a type In function 'void blink()':

code for function blink

Code: [Select]
           byte data = (byte) pgm_read_byte (&kombinacije1[x]);   // fetch data from program memory
           for (byte y=0; y<7; ++y) {
               if (data & (1<<y)) {
                   digitalWrite(y+6, HIGH);
               } else {
                   digitalWrite(y+6, LOW);


Nice reader!

the browser should'nt matter, because the formatting is all done by the wiki engine. The only thing to take care of is that if you include code, it will not be wrapped on your page.

anyway, it looks fine here in camino and safari
"We're all in this together..."


Dec 30, 2006, 09:18 pm Last Edit: Dec 30, 2006, 09:29 pm by CosineKitty Reason: 1
OK, I have started a new page in the Playground that expands upon this topic:


I am not finished yet; I want to write up a section at the end showing how to encode/decode multiple pieces of binary data inside bytes to save memory, but I have been writing for hours now and I need a break.

I would love it if everyone would take a look and let me know...

What is confusing?
What is helpful, or explained something you did not already know?
Are there other examples of weird bit-manipulations you have seen that you do not understand?
Are there any typos or mistakes?
Is this article formatted correctly on your browser? (I used Firefox v


- Don


hey Don,

there's a 'sandbox' page in the wiki where you can just fool around and learn how the wiki works.. you can change the page any way you like. Formatting rules appear just below the text entry window when you're editing. Once you're ready to make a page, find the appropriate section of the wiki, and type in the URL you'd like to use, and it will says something  liek the page doesn't exist; just click edit on that page, and voila, the page exists!


Go Up