Show Posts
Pages: 1 2 3 [4]
46  Using Arduino / Programming Questions / Re: Fun with Rotary Encoders on: October 28, 2012, 10:10:18 am
Hi there, i bought this encoder (https://www.sparkfun.com/products/10596?) that have 7 pins. I'm following this tutorial to make it work with my Arduino Uno (http://www.circuitsathome.com/mcu/reading-rotary-encoder-on-arduino), but i'm confusing because the one on the guide have less pins than mine. Datasheet on sparkfun site is orrible  smiley-mad! Can you tell me how to connect this to Arduino ? thanks a lot
47  International / Software / Re: conversione immagine per GLCD? on: October 11, 2012, 11:28:18 am
Ok, funziona.... smiley-yell Grazie!

Ora volevo sapere se é possibile utilizzare nella stessa schermata font di dimensioni diverse.
48  International / Software / Re: conversione immagine per GLCD? on: October 11, 2012, 10:50:50 am
uhm, come sospettavo! Ma quindi la mia nuova immagine/logo, supponiamo sia questa:
Code:
const unsigned char bnwmini [] = {
0x80, 0x00, 0x40, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x02, 0x49, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x05, 0x7B, 0x7D, 0xF7, 0xFD, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x02, 0xFA, 0x17, 0xAF, 0x7F, 0xD6, 0xE8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x15, 0x4A, 0xBA, 0xF5, 0xAA, 0xB7, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0xE9, 0x56, 0x6D, 0x5E, 0xF6, 0xA8, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x8A, 0xAB, 0x37, 0xD6, 0x96, 0xC0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x01, 0x22, 0x00, 0x49, 0x76, 0x07, 0x80, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x01, 0x02, 0x00, 0xC0, 0x36, 0x00, 0xC0, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x02, 0x04, 0x00, 0x40, 0x1C, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x02, 0x04, 0x00, 0x60, 0x14, 0x00, 0x40, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x02, 0x04, 0x00, 0x80, 0x3C, 0x00, 0x40, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x04, 0x04, 0x00, 0x60, 0x14, 0x00, 0x60, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x04, 0x04, 0x00, 0x40, 0x78, 0x00, 0xC0, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x04, 0x04, 0x2A, 0x20, 0x2E, 0xA8, 0x60, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x08, 0x0C, 0xB7, 0x40, 0x75, 0xFA, 0x94, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x0A, 0xA7, 0xC1, 0xB5, 0x5B, 0x55, 0xFF, 0xC2, 0xD4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x15, 0x5D, 0x75, 0xAF, 0xDD, 0xAB, 0xAB, 0x7B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x10, 0x42, 0xAF, 0x94, 0xA4, 0x88, 0x10, 0x08, 0xA8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x02, 0x10, 0x6A, 0x82, 0x00, 0x20, 0x80, 0x02, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x20, 0x0A, 0x22, 0xA1, 0x28, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x49, 0x00, 0x03, 0x80, 0x01, 0x04, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x49, 0x51, 0x10, 0x68, 0x80, 0x00, 0x40, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x64, 0x41, 0x10, 0x10, 0x42, 0x01, 0x08, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x55, 0x25, 0x28, 0x89, 0x04, 0x00, 0x10, 0x00, 0x00, 0x24, 0x90, 0x00, 0x00, 0x00, 0x00,
0x00, 0x40, 0x4A, 0xAA, 0x40, 0x00, 0x20, 0x80, 0x42, 0x49, 0x00, 0x02, 0x10, 0x00, 0x00, 0x00,
0x00, 0x5D, 0x22, 0xAB, 0x55, 0x51, 0x00, 0x08, 0x10, 0x48, 0x24, 0x82, 0x88, 0x00, 0x00, 0x00,
0x00, 0xE5, 0x5D, 0x54, 0xAA, 0x04, 0x24, 0x22, 0x05, 0x12, 0x91, 0x24, 0x30, 0x00, 0x00, 0x00,
0x00, 0xF5, 0x55, 0xB5, 0x55, 0xE9, 0x00, 0xB4, 0xA8, 0x92, 0x14, 0x25, 0x6C, 0x00, 0x00, 0x00,
0x00, 0xCB, 0x6D, 0x56, 0xAA, 0x2A, 0x53, 0x55, 0x12, 0xAA, 0x95, 0xA5, 0xF4, 0x00, 0x00, 0x00,
0x00, 0xF5, 0x55, 0x5A, 0xAB, 0xAB, 0x51, 0xD6, 0xD5, 0x54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 0x7E, 0x16, 0xAA, 0xFF, 0xF9, 0x5A, 0xDB, 0x77, 0xDF, 0xD5, 0xF6, 0xA0, 0x00, 0x00, 0x00,
0x00, 0x7C, 0x03, 0x5B, 0xFD, 0xFD, 0xB7, 0x55, 0xAD, 0x76, 0xFA, 0xBA, 0x90, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xD4, 0xFF, 0xFC, 0xDB, 0xBD, 0xEF, 0x5A, 0xAF, 0xDA, 0xC6, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x35, 0xED, 0xBF, 0x76, 0xEF, 0x73, 0xD7, 0xF5, 0x44, 0x0A, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x0F, 0xFE, 0xFF, 0x5F, 0xEB, 0x5A, 0xF5, 0x28, 0x20, 0x60, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x03, 0xFB, 0x7D, 0x62, 0x5E, 0xD5, 0x50, 0x00, 0x1F, 0xE0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x01, 0xFF, 0xDF, 0x2B, 0x42, 0x50, 0x00, 0x17, 0xEF, 0xC0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xEE, 0xDF, 0x00, 0x80, 0x00, 0x17, 0xFD, 0xEF, 0xC0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xFB, 0xFE, 0x00, 0x00, 0x0B, 0xFF, 0x6F, 0x6F, 0x80, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xFF, 0x5F, 0xB7, 0x7F, 0xFF, 0x6D, 0xED, 0xAF, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xF7, 0xDF, 0xFF, 0xEF, 0xFF, 0x77, 0xAF, 0xEE, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xED, 0x7F, 0xFF, 0xFF, 0xF5, 0x6D, 0x7A, 0x08, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x77, 0xFF, 0xFF, 0x00, 0x00, 0xF7, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x7B, 0xBF, 0xE0, 0x00, 0x00, 0xD0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x7D, 0xBF, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x3F, 0xFF, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x1F, 0xFF, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x0F, 0xFF, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x07, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};


La devo mettere nello sketch al posto dell'array esistente oppure la devo inserire nel buffer del file .cpp ?
49  International / Software / Re: conversione immagine per GLCD? on: October 11, 2012, 10:15:18 am
Ciao, mi unisco alla disussione. Anche io possiedo lo stesso display, appena acquistato da robot italy, e volevo togliere il logo Adafruit standard per mettercene uno mio personalizzato.
Sto utilizzando il file dell'esempio della libreria ST7565 "st7565lcd". Ho capito che bisogna andare a modificare l'array:
Code:
// a bitmap of a 16x16 fruit icon
static unsigned char __attribute__ ((progmem)) logo16_glcd_bmp[]={
0x30, 0xf0, 0xf0, 0xf0, 0xf0, 0x30, 0xf8, 0xbe, 0x9f, 0xff, 0xf8, 0xc0, 0xc0, 0xc0, 0x80, 0x00,
0x20, 0x3c, 0x3f, 0x3f, 0x1f, 0x19, 0x1f, 0x7b, 0xfb, 0xfe, 0xfe, 0x07, 0x07, 0x07, 0x03, 0x00, };



Ma qualsiasi cosa metto all'interno dell'array mi fa vedere sempre lo stesso logo Adafruit. Anche se cancello del tutto l'array il logo me lo visualizza sempre..... smiley-eek-blue, mi viene il dubbio che non sia memorizzato altrove. Peró tu dici che hai risolto, mi potresti spiegare come hai fatto? I dettagli sono graditi..... smiley
Pages: 1 2 3 [4]