Sample code (Picaxe 20M2 i2c) pause 1000 Main: Hi2csetup i2cmaster,0x64,i2cslow,i2cbyte pause 1000 HI2cOut ("Before CLS") pause 1000 'Clear screen HI2cOut ($1b) ; esc HI2cOut ($5b) ; [ HI2cOut ($32) ; 2 HI2cOut ($4a) ; J Pause 1000 HI2cOut ($1b,$5b,$3f,$32,$35,$49) 'Hide cursor pause 20 HI2cOut ("After CLS") pause 1000 'Move cursor 'HIby StigOfTheDump - Serial & I2C Devices
Sample code (Picaxe 20M2 serial) Main: Pause 1000 Hsersetup B9600_4,%00 Hserout 0,(CR) 'establish comms Pause 500 'viewing time Hserout 0,($1b,$5b,$32,$4a) 'CLS Pause 500 'viewing time Hserout 0,($1b,$28,$33) 'big font (size 3) Pause 500by StigOfTheDump - Serial & I2C Devices
Hi, all sorted now thanks. Have it working in both i2c and serial mode. One of the main problems turned out to be a faulty ribbon cable between the controller and my picaxe. Also the picaxe has 2 serial modes, serout and hserout. I was concentrating most of my efforts on serout but was unable to get that working. Hserout is faster but restricted to 2 particular output pins, so not as flexible.by StigOfTheDump - Serial & I2C Devices
Hi Jim, thanks for the reply. I have spent today trying again in both modes but without any success. I have asked a question on the Picaxe forum, as I was able to get some help there before with my 4513. That turned out to be just a syntax issue and I am expecting this to be the case again. If I can get some 'known good' code, I should be able to figure it all out from there. If it turns ouby StigOfTheDump - Serial & I2C Devices
Hi, I bought a 192x64 LCD fitted with a BV4613 about 3 years ago but have only just got around to trying it. In Serial mode I have it powered up but can't seem to get past the "waiting for CR" message. I am using a picaxe 20M2 (but have most other current ones) and have tried hserout and serout commands. I have tried CR, "CR", 13, #13, "13", 0x0d and $0d but cby StigOfTheDump - Serial & I2C Devices