I just bought the ST7735 screen to use with an HTU21 temp sensor but all the projects I found have 8 pins on the screen. I have 7. Has anyone use one like this and how do I connect it.
The pins I have are;
GND VCC SCL SDA RES DC BLK
First, always post a link to the exact item you bought, just to make things clearer.
Then, I hope you don't base your projects on the "number of pins", right?
Given the pin names, it's clearly a SPI interface, and after googling for a couple of minutes it looks like it's the same as THIS, where you can find description, libraries, and sample code. And THIS video shows some helpful hints.
PS: anyway, never, ever, buy "new" things from sellers not providing technical specifications!
...it could be I2C (sda, scl) or SPI.
Or either (not both. Well, not simultaneously)
Thanks for the reply and links.
I tried compiling the example code and gettting this error message.
Arduino: 1.8.16 (Windows 10), Board: "Arduino Uno"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\richi\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\richi\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\richi\OneDrive\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10816 -build-path C:\Users\richi\AppData\Local\Temp\arduino_build_640639 -warnings=none -build-cache C:\Users\richi\AppData\Local\Temp\arduino_cache_113037 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\richi\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\richi\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Users\richi\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\richi\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose M:\Downloads\ER-TFTM013-1_Arduino_Tutorial\ER-TFTM013-1_Arduino_Tutorial\Libraries-Examples_ER-TFTM013-1\Examples\Examples.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\richi\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\richi\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\richi\OneDrive\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10816 -build-path C:\Users\richi\AppData\Local\Temp\arduino_build_640639 -warnings=none -build-cache C:\Users\richi\AppData\Local\Temp\arduino_cache_113037 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\richi\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\richi\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Users\richi\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\richi\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose M:\Downloads\ER-TFTM013-1_Arduino_Tutorial\ER-TFTM013-1_Arduino_Tutorial\Libraries-Examples_ER-TFTM013-1\Examples\Examples.ino
Using board 'uno' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\\Users\\richi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\richi\\AppData\\Local\\Temp\\arduino_build_640639\\sketch\\Examples.ino.cpp" -o nul
Alternatives for UTFT.h: [UTFT]
ResolveLibrary(UTFT.h)
-> candidates: [UTFT]
"C:\\Users\\richi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Users\\richi\\OneDrive\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\richi\\AppData\\Local\\Temp\\arduino_build_640639\\sketch\\Examples.ino.cpp" -o nul
"C:\\Users\\richi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Users\\richi\\OneDrive\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\richi\\OneDrive\\Documents\\Arduino\\libraries\\UTFT\\DefaultFonts.c" -o nul
"C:\\Users\\richi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Users\\richi\\OneDrive\\Documents\\Arduino\\libraries\\UTFT" "C:\\Users\\richi\\OneDrive\\Documents\\Arduino\\libraries\\UTFT\\UTFT.cpp" -o nul
Alternatives for memorysaver.h: []C:\Users\richi\OneDrive\Documents\Arduino\libraries\UTFT\UTFT.cpp:91:10: fatal error: memorysaver.h: No such file or directory
ResolveLibrary(memorysaver.h)
-> candidates: []~~~~~~
compilation terminated.
Using library UTFT in folder: C:\Users\richi\OneDrive\Documents\Arduino\libraries\UTFT (legacy)
exit status 1
Error compiling for board Arduino Uno.
You're right, my fault, but I just misspelled the acronym, I obviously meant I2C, as it has SDA/SCL signals (SPI pins are usually called MISO/MOSI).
It looks like something with your UTFT library, you have more than one of it with the same name (ine under your local data, the other on OneDrive). Make a bit of clean in your libraries, make sure you don't have duplicates especially if they're different (even with the same name).
That's why it's always better use the "portable" IDE version instead of installer: with portable you can "pack" everything undeer a single fixed directory.
I saw the message in monitor about duplicate and missed part of the message. I will delete duplicates and see if it helps.
Thanks for the help. I'm still learning.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.