Meant to have said my code is for the 8 port version, the 16 port version would have another byte added after, as you have got.
"The extra byte is write statement, as said in datasheet?"
Your...
Type: Posts; User: aerostar; Keyword(s):
Meant to have said my code is for the 8 port version, the 16 port version would have another byte added after, as you have got.
"The extra byte is write statement, as said in datasheet?"
Your...
PBP handles the read write bit if I remember correctly, leave your 0 out
this is my code
ADDR=78 PORTBYTE IS VALUE FOR PORTBITS
i2cwrite sda,scl,ADDR,PORTBYTE 'ENSURE ALL OFF ON POWER UP...
Possibly one of the address lines is dry joint so wrong address.
Found this on forum which could be useful
https://www.picbasic.co.uk/forum/showthread.php/20185-I2C-Ping-program
https://melabs.com/
Why don't you get rid of the crystal and use the pic internal oscillator ? That should stop your hand capacitance causing problems on the crystal circuit.
What operating system ? Try installing in c:\ and not a c:\Program directory.
Just becareful with lcds that have backpacks already attached, some do not have the SDA SCL pullups on board, hence may not work. I hooked up a lcd with backpack fitted and it would not work until...
Code is modified from Steve Earl have left his code but remmed out stuff I did not use.
Biggest problem is getting the address correct.
Picture is adapter used. (Ebay) LCDs with adapter attached...
Have you defined temp as word ?- you do not show in your code.
For read try 161 address
Did you find this in the forum ?
http://www.picbasic.co.uk/forum/showthread.php?t=19695&highlight=USB+keyboard+emulation
24LC series is a possibility and does not need battery backup.
Serial EEPROM
• More than 1 Million Erase/Write Cycles - if that is enough
• Data Retention > 200 years
This has according to https://www.microchip.com/wwwproducts/en/PIC16F15376
Flash Program Memory with self read/write capability, so you could use space at the end of the flash program memory for...
OT
Have you got your HTC dot matrix ? on your other posting http://www.picbasic.co.uk/forum/showthread.php?t=24178&p=146445#post146445
Do a search for USB keyboard emulator, there are a couple of threads - here is one http://www.picbasic.co.uk/forum/showthread.php?t=8291, once you get the keyboard working you can the take the data...
Forgot to mention the Ebay item number for anyone interested (Other suppliers are available)
eBay item number:
401111914275
Mine arrived 30mins ago Jan 16th about 10:00 UK time, - connector pins a bit bent, although packing was good. Here it is running with the code above
https://youtu.be/52boY-4e4qc
You will only...
Here is test code - it just counts 0 - 9 in clock type format wth colon between 2nd and 3rd digit.
eg 55:55 66:66 etc
I have ordered a display module from Ebay - so will...
Hi
Have a look here http://www.picbasic.co.uk/forum/showthread.php?t=11871
I played with Sure modules way back - late 2000s and used 2 modules to make a nice large clock and where the digits...
Change the gosub to a goto, as it stands the gosub code will continue on return to the endif and code that follows it, not what you want I think.
I have used this http://geekmatic.in.ua/pdf/Catalex_MP3_board.pdf
ebay
...
This may be an answer https://www.itead.cc/wiki/ESP8266_Serial_WIFI_Module
https://www.youtube.com/watch?v=x-mpltUzK5I
Seems to be lot on youtube on these modules plus google for
esp8266...
On Realterm - display tab - have you chosen Display as Hex + ASCII ?
$04 is technically an unprintable character - it means "End of Transmission"
https://www.ascii-code.com/
Also it depends...
The commands are easy - the pdf gives them, here are 3
HSEROUT [$7E,$FF,$06,$03,$00,$00,MESSAGE,$EF] ' Plays file from sd card - eg if if button 5 is pushed then make variable MESSAGE =5,...
I have used a number of different modules - the one I like is this http://geekmatic.in.ua/pdf/Catalex_MP3_board.pdf, I made a speaking clock connected to MSF receiver. (Can be done with GPS)
You...