Pages: [1]   Go Down
Author Topic: Parsing I2C EEPROM  (Read 1200 times)
0 Members and 1 Guest are viewing this topic.
Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello. I'm working on a project and i need a bit of guidance and help. I have an arduino ATmega328 with an OLED hooked up to it. i have witten a few games like "pong" and "snake" for the arduino.. using the thumbstick/ buttons sheild. what i want to do next.. is use an I2C EEPROM like (http://www.sparkfun.com/products/525) this one. i know how to use it. or at least basicly. i got the idea from making a readable/writable game cartradge for the SEGA games. you know.. just loading ROMS into the memory. i want to use it for the same. so. i know i need some kind of inperpreter.. i know there is no way of compiling the code to there and telling the aduino to run it... but i know there is a way to use an interpreter. i know it'll be crazy slow at first.. but i just need somewhere to start. i mean, hell. Pong doesn't need to go fast to play it. its just a few shapes moving on the OLED screen.

it'd be so awesome if anyone could give me any advice or tutorials. i've been searching google for ever... so i just thought i'd drop in here to ask this question.  smiley-kitty
Logged

~Katja

Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

well.. i thought of maybe using some code from bitlash (giving lal credit where due.. even though this isn't for commercial reasons. just a personal project... but still, if i ever release the source, it's in there in a comment.)

but yeah. bitlash would parse and execute commands... i just have to write an algorithem for reading from the I2C EEPROM. i'll prolly have to develope further commands for working the OLED screen. just so i can write any apps i want to run on the chip. and i'll have to write some app. probably in java to send all the data into the serial channel and have the arduino write it straight to the chip.. the java app will read from a file. i'm totally new with java.. but i LOVE how if i wite something like that, it'll be able to run on any OS. lol. smiley-kitty
Logged

~Katja

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 220
Posts: 13846
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

maybe my I2C eeprom class helps a bit - http://arduino.cc/playground/Main/LibraryForI2CEEPROM
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

well, it made writing and reading to the chip ALOT easier.. lol i dont have to mess with command bits and adress bytes. just kinda Dumpeeprom(0,20); and it gives me the first 20 bytes. its really awesome. xD thanks. still need something to use to parse and execute code.
Logged

~Katja

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 220
Posts: 13846
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

try to patch bitlash so it accepts commands from eeprom.
you might need to write a - char * readLineFromEEPROM() - and feed it to bitlash
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: