ok, so i dont know what to do
im trying to control an LED array of 10 cloumns and ten rows using a 32bit output expander and a pixace 18X, communicating over I2C
i havent got the output expanders yet (in the post) but i wrote a program to see if the led's would refresh fast enough to seem constantly on, and here it is:
main:
i2cslave %10100000, i2cslow, i2cbyte
goto loop
loop:
high 3
writei2c b1, (b1,b1,b1,b1,b1,b1,b1,b1)
low 3
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
goto loop
the first part sets up the I2C bus, then lights up an led, simulationg the first column, sends an I2C command, then turns it off, and then sends 9 more I2c commands, simulating changing the leds in all of the columns,then turns the first LED back on. i was hoping that it would happen fast enough that POV would kick in, and the LED would seem like its on all of the time, but its not. and this is only controlling a 10 * 10 grid, i was hoping to go bigger than that. so what i need to know now is, is thwere anything i can do to make this a worthwile project still, or should i just find another use for 100 leds, a picaxe 18x and 9 output expanders?
im trying to control an LED array of 10 cloumns and ten rows using a 32bit output expander and a pixace 18X, communicating over I2C
i havent got the output expanders yet (in the post) but i wrote a program to see if the led's would refresh fast enough to seem constantly on, and here it is:
main:
i2cslave %10100000, i2cslow, i2cbyte
goto loop
loop:
high 3
writei2c b1, (b1,b1,b1,b1,b1,b1,b1,b1)
low 3
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
writei2c %10100000, (b1,b2,b3,b4,b5)
goto loop
the first part sets up the I2C bus, then lights up an led, simulationg the first column, sends an I2C command, then turns it off, and then sends 9 more I2c commands, simulating changing the leds in all of the columns,then turns the first LED back on. i was hoping that it would happen fast enough that POV would kick in, and the LED would seem like its on all of the time, but its not. and this is only controlling a 10 * 10 grid, i was hoping to go bigger than that. so what i need to know now is, is thwere anything i can do to make this a worthwile project still, or should i just find another use for 100 leds, a picaxe 18x and 9 output expanders?