Hello,
I wanted to display text on the LCD. Unfortunately I didn't succeed, because the program will fail when the "gLCD_ST7565R_SPI1" component is initialized.
- I use an Arduino Uno Board.
- Every 500ms the Arduino LED (Digital 13) is triggered.
- Before the endless loop the "gLCD_ST7565R_SPI1" component is initialized.
- Then a line is to be written on the LCD display.
If the "gLCD_ST7565R_SPI1" component and further LCD actions are deactivated, the program runs without problems. the LED blink in the preset frequency. If I activate the "gLCD_ST7565R_SPI1" component, the program frozen with this term.
Can anyone help me?
Error in the "gLCD_ST7565R_SPI1" Component
Moderator: Benj
-
- Posts: 89
- Joined: Wed Aug 31, 2016 4:48 pm
- Been thanked: 4 times
- Contact:
Error in the "gLCD_ST7565R_SPI1" Component
- Attachments
-
- Grafik_ST7565_Del.fcfx
- (11.06 KiB) Downloaded 163 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Error in the "gLCD_ST7565R_SPI1" Component
Hello,
On an AVR device if you use hardware SPI and leave the SS pin (B2 on your device) as an input then this can lockup the MCU. Either use B2 as your CS pin or as an output before you initialise the SPI component or use the software channel. This is a known and common problem with AVR devices and SPI.
On an AVR device if you use hardware SPI and leave the SS pin (B2 on your device) as an input then this can lockup the MCU. Either use B2 as your CS pin or as an output before you initialise the SPI component or use the software channel. This is a known and common problem with AVR devices and SPI.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel