camerart
Well-Known Member
Hi,
I have Nokia 5110 screens working with software in Oshonsoft, but I want them to work in Hardware.
Here is a program that posted by 'Ian rogers' back in 2017: https://www.electro-tech-online.com/threads/lcd-spi-projects.152107/post-1309652
which works, but not with a Font I have as an INCLUDE.
I have a HW program, which I haven't got working yet. I think it could be SPICSON/OFF in HW.
Here is an example:
'===========================================
'Initialize BMP280
init_BMP280:
'Compensation parameters
SPICSOn
For i = 0 To 23
altmtr_cs = 0 'CHIP SELECT BMP280 ON
adr = 0x88 + i
SPISend adr
SPIReceive data
b(i) = data
altmtr_cs = 1 'CHIP SELECT BMP280 OFF
Next i
SPICSOff
'=======================================
What does SPICON and OFF actually do, and how can I write it in HW, please?
Cheers, Camerart
I have Nokia 5110 screens working with software in Oshonsoft, but I want them to work in Hardware.
Here is a program that posted by 'Ian rogers' back in 2017: https://www.electro-tech-online.com/threads/lcd-spi-projects.152107/post-1309652
which works, but not with a Font I have as an INCLUDE.
I have a HW program, which I haven't got working yet. I think it could be SPICSON/OFF in HW.
Here is an example:
'===========================================
'Initialize BMP280
init_BMP280:
'Compensation parameters
SPICSOn
For i = 0 To 23
altmtr_cs = 0 'CHIP SELECT BMP280 ON
adr = 0x88 + i
SPISend adr
SPIReceive data
b(i) = data
altmtr_cs = 1 'CHIP SELECT BMP280 OFF
Next i
SPICSOff
'=======================================
What does SPICON and OFF actually do, and how can I write it in HW, please?
Cheers, Camerart