With W11, I repeat the same error: In file included from C:\Program Files (x86)\Arduino\1_mode_\TTGOAlienAttack-main\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:5:0: enemy.h:1:1: error: stray '\357' in program int frames=4; The enemy.h file is in "UTF-8 BOM" encoding, with the notebook open it and save it in "UTF-8" and it works perfectly. It is not necessary to delete blank lines. Now works fine , thank you !!
Perfect, para os BR, pega o arquivo enemy.h abre com o bloco de notas ai vai em salvar como, na parte abaixo do nome, mude o formato para UTF-8, por padrao vai esta UFT-8 BOM
If problem with ledcSetup in setup, change "ledcSetup(pwmLedChannelTFT, pwmFreq, pwmResolution); ledcAttachPin(TFT_BL, pwmLedChannelTFT);" to "ledcAttachChannel(TFT_BL, pwmFreq, pwmResolution, pwmLedChannelTFT);"
Thank you sir !! I've been banging my head against a wall with all the garbage from piecing info together. This gave me the dangling carrot of hope I needed to keep tinkering with it :)
Thanks for this tutorial. I got it working on my T-Display. I went back and edited your code so that, when a score equal to or greater than 100 is achieved, pin 2 on the board will go HIGH. Maybe I'll have that trigger a dispenser so players can get a reward for a game well played.
I finally got the TTGO T-Display board so now I can start learning how to code using your tutorials, you're the best developer online that I know of, keep up the good work.
@@VolosProjects yeah I got stuck with an error when I'm compiling the code: Compilation error: stray '\357' in program It's in the ani.h file on line 1 I don't know what to do about it so I could use some help
@@VolosProjects Never mind, I got the issue solved already. The ani.h file has the wrong encoding, now it is encoded with UTF-8-BOM and it needs to be UTF-8, with Notepad++ I got it saved as UTF-8 and the issue went away.
Hey man, I'm going to have to wait a bit longer to get the new board you covered in another video so I was looking at this video list of the older board and I find them very interesting and useful to get me started with this board as well so I'm gonna buy this board also and use your link to make sure you'll get the commission. It's the least I can do to support you doing this great work spreading the information. Have a great day.
Great video - these instructions still continue to work even on a Mac running Arduino IDE 2.3.2. Just be sure Tools> Upload Speed is set to 115200 or you'll get a "Unable to verify flash chip connection" error.
Thank you for making the tutorial on how to change the TFT_eSPI code, works great. I was wondering on the .h files are those converted jpeg files for example the background of the game
Thanks a lot. You made it in 2020 and this module, and info, is new for me! - Greetings from Colombia. I will buy some modules and test your code! - Maybe you will help me in some lines for one personal project.
Thanks for very nice explanation and making a great video. May I ask if you could let me know how to connect NodeMCU ESP8266 V3 with 3.5 inch TFT touchless display having ILI9488 driver? I want to use TFT_eSPI library for it. I tried many configurations but was unsuccessful. Can you please let me know the wire connections and if any changes required in the TFT_eSPI codes? Thank you very much for your help in advance.
Great tutorial! Thanks for this. I managed to setup and upload everything, no errors with the weather app, but I am stuck on connecting to wifi. It just says "connecting to *network ID* ......" and endless dots. Is it possible it has issues with "WPA2 personal"?
Bought my first TTGO T-display recently and followed this tutorial. I was able to get the example print test file to work but when I tried to upload your game file, I got an error and now the board seems to be unresponsive. When I connect it to the computer, the blue light flashes rapidly and I can't seem to do anything. Is there a way to reset it back to factory settings?
Thanks for detail instruction. In Ubuntu 20.10, I had error when try compile TFT_eSPI example - "import serial ImportError: No module named serial". Error was solved command in console - "sudo apt install python-is-python3"
@Volos Projects I keep getting the error: "A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header" Any ideas on how to resolve this?
Wow, truly impressive and useful content. Thank you, I love watching your great videos and can't wait to get properly setup.. but after following the tutorial steps with no problem until approximately time : 9:20 or so.., successfully installing and running the example demos on my TTGO Display board, .. I tried to verify/compile your attack game and sadly am getting errors as it cant seem to find these library files: #include #include #include "back.h" #include "player.h" #include "enemy.h" #include "ani.h" #include "gameover.h" could it be because my IDE is the 2.0.4 version .. or perhaps it's because the sketch is still located in folder I added onto my Win 11 desktop as indicated in this video? .. and now it can't find the .h files there? I will try again but will use the IDE 1.8.x you are using in the video instead. Thanks Again.. jimS
No, it is simple.. you downloaded my code and thease files was also in folder, but your ide made new folder for .ini file, you just need put all files in same folder.. i hope i explained it right, just check downloaded files and put all files in same folder where .ini file is
@@VolosProjects 😁 Yes, your cool Arcade game is now working ! I simply made a copy of its .h files that unzipped to a folder in my desktop and placed these into the C:\Users\jimxxx\Documents\Arduino\libraries\TFT_eSPI folder where I think my IDE 2.0.4 is looking for such library type files. I'm not sure that was the best way to do it but can't argue with success.. Thank you Again for such a clear and insightful guideline..
If you get this error: enemy.h:1:1: error: stray '\357' in program int frames=4; To fix: Load enemy.h file into Notepad ++ and switch encoding to UTF-8.
Very nice and simple intro to this board. However, sadly, I can not get it to work on two boards. I followed your directions carefully and it loads with no errors but the screen(s) are blank. Please help if you can. RP
So you instaled esp32 board,edited two files in library, saved , chosed ttgo oled board in arduino ide and uploaded and screen is still black? Are you sure you have this board?
hey man! your channel is very intereseting. I just bought a LILYGO and I cannot connect to it. I have tried to do everything, I followed your example, but in my screen the option for the PORT is not enabled, I cannot click it
Hi is it possible to add an SPI device to this device (TTGO). It does not appear the the SPI buss is available. I would like to retrieve data from a SPI slave and display it on the screen. Thank you for your time. W
Do you ever sleep? So many projects... Quick question: Starting last week, when I upload a sketch, it fries my TTGO LoRa32-OLED V1. I've fried three of them in 3 days. Any suggestions? Thanks in advance!
@@VolosProjects False alarm! I just need to plug in the USB cable before I boot my computer. I'm very relieved. Thank you for answering me! Your videos are excellent, as is your command of English. Are you Polish? Ukrainian? I've been studying Russian for years, and I can still just barely communicate. (I also speak Spanish, Portuguese and French about 9 out of 10.) You do have a foreign accent, but your code is crystal clear, thank you! BTW, I'm the guy who sold the Magic Wand, which was used as the basis for Word, to a 24-year-old Bill Gates in Houston, Texas in 1980 - for almost nothing. What an idiot I was!
@@LesFPinter Thank you for nice comments. I am from Croatia and you are right we have similar accent as Russian or Ukrainian people. I live and work in Croatia and i sleep very little, i wake up in 5 , i dont know why but i cant sleep so i have time for my hobby.....It is nice to meet father of Word, I think Bil Gates and Steve were good in buying stuff :) But you still have your crativity :)
@@VolosProjects I posted a question about problems I had setting up my Arduino IDE for the ESP32 S3 T-Display, but I don't remember where. Can you point me in the right direction? I get the python error messages...
@@LesFPinter did you fallow my instruction video for instaling t-display s3, you can try reinstall or instal python if you dont have it installed on your pc. What Arduino IDE you are using. Are on MAC on on WIN?
Problem: Connecting........_____....._____....._____....._____....._____....._____....._____ A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header Solution: Before pressing Upload, hold down EN button (the button to the left of the USB) and only release once "Connecting..." shows up
I am getting this error while using my ttgo why is that happening could you please help me about it? "Sketch uses 18280 bytes (59%) of program storage space. Maximum is 30720 bytes. Global variables use 1882 bytes (91%) of dynamic memory, leaving 166 bytes for local variables. Maximum is 2048 byte"
@@VolosProjects yes i did but still same :( I am working with a sensor and I want to see some datas in the serial monitor but its empty there. Is it possible to see the datas on the serial monitor while using this board?
I get the following errors when I try to upload it: In file included from C:\Downloads\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:5:0: enemy.h:1:1: error: stray '\357' in program int frames=4; ^ enemy.h:1:1: error: stray '\273' in program enemy.h:1:1: error: stray '\277' in program exit status 1 stray '\357' in program I googled this and apparently this one .h file contains the UTF-8 Byte Oder Marker. I was able to resolve the problem by putting the cursor at the start of the firs line and pressing backspace to delete the illegal characters. The other .h files seem to be fine. I'm using Windows 10. I downloaded them as a zip file from Github as you did in the video.
@@VolosProjects Interesting. It's curious that only the enemies.h file is affected. As I said, I got it working by (presumably) deleting the invisible characters at the start. Any idea why only enemies.h was affected?
@@VolosProjects same thing happened to me, and I can confirm that deleting all the blank spaces in the enemy.h file worked and it compiled correctly after that. Thank you to Volos and Ytubeleo
Thanks kindly for the reply. I actually managed to just get it to compile by removing frames=4 line. The wifi weather station tho. I spent a good 2h trying to get that one to compile. Issues with wifi library and type casting issues.
Arduino: 1.8.15 (Windows 10), Плата:"TTGO LoRa32-OLED V1, 80MHz, 921600, None" In file included from C:\Users\79994\Desktop\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:5:0: enemy.h:1:1: error: stray '\357' in program int frames=4; ^ enemy.h:1:1: error: stray '\273' in program enemy.h:1:1: error: stray '\277' in program exit status 1 stray '\357' in program Этот отчёт будет иметь больше информации с включенной опцией Файл -> Настройки -> "Показать подробный вывод во время компиляции"
In file included from C:\Program Files (x86)\Arduino\1_mode_\TTGOAlienAttack-main\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:5:0: enemy.h:1:1: error: stray '\357' in program int frames=4; ^ enemy.h:1:1: error: stray '\273' in program enemy.h:1:1: error: stray '\277' in program exit status 1 stray '\357' in program
@@VolosProjects I deleted the line. compiled and In file included from C:\TTGOAlienAttack\TTGOAlienAttack.ino:5:0: enemy.h:1:1: error: stray '\357' in program ^ enemy.h:1:1: error: stray '\273' in program enemy.h:1:1: error: stray '\277' in program exit status 1 stray '\357' in program
I had this same problem on a MacBook Air M1..I used sublime text and saved the enemy.h file with encoding Western (Windows 1252) and that fixed it for me
In file included from C:\Program Files (x86)\Arduino\1_mode_\TTGOAlienAttack-main\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:5:0: enemy.h:1:1: error: stray '\357' in program int frames=4; Someone else posted a fix, but hopefully another post will help someone find the fix. The Enemy.h file is saved as a UTF-8 BOM file, and needs to just be UTF-8. Download Notepad++ and open the file. Go to the top and look for encoding and you should be able to figure it out from there. It compiles fine now! @patufetselaer3651 was the person I saw post the fix.
Hi im just getting this error no matter what system i try to flash the code with windows 10 pc or windows 11 laptop "Arduino: 1.8.19 (Windows 10), Board: "TTGO LoRa32-OLED V1, 80MHz, 921600, None" Sketch uses 819162 bytes (62%) of program storage space. Maximum is 1310720 bytes. Global variables use 14088 bytes (4%) of dynamic memory, leaving 280824 bytes for local variables. Maximum is 294912 bytes. esptool.py v3.0-dev Serial port COM12 Connecting... Traceback (most recent call last): File "esptool.py", line 3682, in File "esptool.py", line 3675, in _main File "esptool.py", line 3330, in main File "esptool.py", line 512, in connect File "esptool.py", line 492, in _connect_attempt File "esptool.py", line 431, in sync File "esptool.py", line 369, in command File "esptool.py", line 332, in write File "site-packages\serial\serialwin32.py", line 323, in write serial.serialutil.SerialTimeoutException: Write timeout Failed to execute script esptool An error occurred while uploading the sketch This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences."
I cannot get these TTGO boards to connect to my mac: Has anyone had this issue? followed the istructions to the letter. --- Sketch uses 293873 bytes (22%) of program storage space. Maximum is 1310720 bytes. Global variables use 21716 bytes (7%) of dynamic memory, leaving 273196 bytes for local variables. Maximum is 294912 bytes. esptool.py v4.5.1 Serial port /dev/cu.usbmodem568B0255451 Connecting..... Chip is ESP32-D0WDQ6-V3 (revision v3.0) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: b0:b2:1c:4f:07:68 Uploading stub... A fatal error occurred: Failed to write to target RAM (result was 01070000: Operation timed out) Failed uploading: uploading error: exit status 2
hi. How can I solve this problem? C:\Arduino IDE\sketch\alienarack\alienarack.ino: In function 'void setup()': C:\Arduino IDE\sketch\alienarack\alienarack.ino:58:3: error: 'ledcSetup' was not declared in this scope 58 | ledcSetup(pwmLedChannelTFT, pwmFreq, pwmResolution); | ^~~~~~~~~ C:\Arduino IDE\sketch\alienarack\alienarack.ino:59:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 59 | ledcAttachPin(TFT_BL, pwmLedChannelTFT); | ^~~~~~~~~~~~~ | ledcAttach exit status 1 Compilation error: 'ledcSetup' was not declared in this scope
Hi, Love your vlogs. This one gives me a compilation error though. ********************************************************** In file included from F:\Programming\Arduino\TTGO\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:5: F:\Programming\Arduino\TTGO\TTGOAlienAttack-main\TTGOAlienAttack\enemy.h:1:1: error: 'int' does not name a type 1 | int frames=4; | ^~~~~~ F:\Programming\Arduino\TTGO\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino: In function 'void setup()': F:\Programming\Arduino\TTGO\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:58:3: error: 'ledcSetup' was not declared in this scope 58 | ledcSetup(pwmLedChannelTFT, pwmFreq, pwmResolution); | ^~~~~~~~~ F:\Programming\Arduino\TTGO\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:59:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 59 | ledcAttachPin(TFT_BL, pwmLedChannelTFT); | ^~~~~~~~~~~~~ | ledcAttach ************************************************** Implementing the solution posted by patufetselaer3651 solved those problems. Thanks patufetselaer3651 It actually already went pearshaped with the TFT_Print_Test example: ************************************************** In file included from c:\Users\Frank\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:24: c:\Users\Frank\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32.c: In member function 'void TFT_eSPI::begin_SDA_Read()': c:\Users\Frank\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32.c:72:3: error: 'gpio_set_direction' was not declared in this scope 72 | gpio_set_direction((gpio_num_t)TFT_MOSI, GPIO_MODE_INPUT); | ^~~~~~~~~~~~~~~~~~ c:\Users\Frank\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32.c: In member function 'void TFT_eSPI::end_SDA_Read()': c:\Users\Frank\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32.c:87:3: error: 'gpio_set_direction' was not declared in this scope 87 | gpio_set_direction((gpio_num_t)TFT_MOSI, GPIO_MODE_OUTPUT); | ^~~~~~~~~~~~~~~~~~ **************************************************** Eventually, after scrubbing the system of any Arduino related files, doing a clean installation of IDE 2.3.2, keeping all defaults, and following your instructions to the letter, didn't get rid of the problem. Replacing the esp32 v 3.0.2 boards package (by espressif) with version 2.0.17 in the boards manager solved that problem (thanks espressif?). This solved most other problems I got from compiling for ESP boards as well. AlienAttack now happily compiles, uploads and runs like a charm. P.S. Nobody ever told us computing was ging to be a breeze...
With W11, I repeat the same error:
In file included from C:\Program Files (x86)\Arduino\1_mode_\TTGOAlienAttack-main\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:5:0:
enemy.h:1:1: error: stray '\357' in program
int frames=4;
The enemy.h file is in "UTF-8 BOM" encoding, with the notebook open it and save it in "UTF-8" and it works perfectly.
It is not necessary to delete blank lines.
Now works fine , thank you !!
Thank you. This made it work in my case.
Thank you. This should be on top or OP should change his code.
Perfect, para os BR, pega o arquivo enemy.h abre com o bloco de notas ai vai em salvar como, na parte abaixo do nome, mude o formato para UTF-8, por padrao vai esta UFT-8 BOM
If problem with ledcSetup in setup, change
"ledcSetup(pwmLedChannelTFT, pwmFreq, pwmResolution);
ledcAttachPin(TFT_BL, pwmLedChannelTFT);"
to
"ledcAttachChannel(TFT_BL, pwmFreq, pwmResolution, pwmLedChannelTFT);"
Thank you sir !! I've been banging my head against a wall with all the garbage from piecing info together. This gave me the dangling carrot of hope I needed to keep tinkering with it :)
tnx for comment, i am glad i helped :)
Dude you are a LEGEND! Thank you for properly explaining this and getting many people (including myself) into this hobby!
Thanks for this tutorial. I got it working on my T-Display. I went back and edited your code so that, when a score equal to or greater than 100 is achieved, pin 2 on the board will go HIGH. Maybe I'll have that trigger a dispenser so players can get a reward for a game well played.
I finally got the TTGO T-Display board so now I can start learning how to code using your tutorials, you're the best developer online that I know of, keep up the good work.
tnx Ricardo, feel free to ask if you stuck
@@VolosProjects yeah I got stuck with an error when I'm compiling the code: Compilation error: stray '\357' in program
It's in the ani.h file on line 1
I don't know what to do about it so I could use some help
@@VolosProjects Never mind, I got the issue solved already. The ani.h file has the wrong encoding, now it is encoded with UTF-8-BOM and it needs to be UTF-8, with Notepad++ I got it saved as UTF-8 and the issue went away.
Brilliant tutorial!
I doubt if I would have got the board working without your guidance.
Thanks a million!!!
Thanks for this - finally got my TTGO up and running - cheers
The most complete explanation I have seen. Thanks, I'm up and running!
Thanks for the explanation! It works fine! Please do make more games for the TTGO Board!
yes atleast 100
Hey man, I'm going to have to wait a bit longer to get the new board you covered in another video so I was looking at this video list of the older board and I find them very interesting and useful to get me started with this board as well so I'm gonna buy this board also and use your link to make sure you'll get the commission.
It's the least I can do to support you doing this great work spreading the information.
Have a great day.
Very clear and helpful. Got me up and running with this very neat board
Tnx, nice to hear that😀
Great video - these instructions still continue to work even on a Mac running Arduino IDE 2.3.2. Just be sure Tools> Upload Speed is set to 115200 or you'll get a "Unable to verify flash chip connection" error.
Thanks for so carefully and clearly explaining the process. It really has helped and is appreciated
thankyou so much i at first lost hope with this but your tut was amazing
I am so happy I found your channel. Great videos. Great explanations. Thanks so much for sharing!
Thank you
thank you very much for your great tutorail very easy to understand! :)
Thank you so much, this is exactly what I needed to get going with this new board
Works great! Love the games you make. Great learning tool also!
Thank you, this really helped.
Thank you for making the tutorial on how to change the TFT_eSPI code, works great. I was wondering on the .h files are those converted jpeg files for example the background of the game
Why did you not pick the
"TT GO T1" board?
You are legend happy to buy you coffee
Tnx my friend :)
Thanks a lot. You made it in 2020 and this module, and info, is new for me! - Greetings from Colombia. I will buy some modules and test your code! - Maybe you will help me in some lines for one personal project.
This is great, thanks for taking the time to share
Yahoo! it works finally. Thanks
This helped immensely, thanks!
amazing video! thanks!
If you get error having to do with divers not included:
add: #include
probably verision of esp32, try downgrade it to version lower than 3.0
NICE video man!! So gratefull!!
Very well explained! thank you.
thanks a lot for this tutorial
hello, is there any base station 32 pin for this esp32 ttgo t-display module?
6:45 how do i find out which line is my board that I need to comment out?
this is awesome and has rich colours in it,i would have bought it if there are 100+ games,my bad luck.
Could you kindly make a video on how to change between backgrounds (changing font colours as well)? Love your videos. All works for me
Thanks a lot
Thanks, you are great and your contents are very cool, have a nice day.
Gracias, es muy grato escucharte y tus contenidos son geniales, buen día
Thanks for very nice explanation and making a great video. May I ask if you could let me know how to connect NodeMCU ESP8266 V3 with 3.5 inch TFT touchless display having ILI9488 driver? I want to use TFT_eSPI library for it. I tried many configurations but was unsuccessful. Can you please let me know the wire connections and if any changes required in the TFT_eSPI codes? Thank you very much for your help in advance.
Thanks very much it works.
Nice work! How do you create the .h files that contain the graphics? I am also making a program and I am confused about how to generate the files.
Thanks and please wish me good luck with my lillygo T4 HMI.
Good luck :) I need to try that board.
Thank you!!
👍
Can you tell me what code I need to add to my ino to add an image?
Awesome love from india 💗
THANKS!
Great tutorial! Thanks for this. I managed to setup and upload everything, no errors with the weather app, but I am stuck on connecting to wifi. It just says "connecting to *network ID* ......" and endless dots. Is it possible it has issues with "WPA2 personal"?
Bought my first TTGO T-display recently and followed this tutorial. I was able to get the example print test file to work but when I tried to upload your game file, I got an error and now the board seems to be unresponsive. When I connect it to the computer, the blue light flashes rapidly and I can't seem to do anything. Is there a way to reset it back to factory settings?
great video. One question, why I can't see the USB port but only bluetooth? I'm on mac, maybe I need some drivers? thanks
Thanks for detail instruction. In Ubuntu 20.10, I had error when try compile TFT_eSPI example - "import serial ImportError: No module named serial". Error was solved command in console - "sudo apt install python-is-python3"
@Volos Projects
I keep getting the error: "A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header"
Any ideas on how to resolve this?
Wow, truly impressive and useful content. Thank you, I love watching your great videos and can't wait to get properly setup.. but after following the tutorial steps with no problem until approximately time : 9:20 or so.., successfully installing and running the example demos on my TTGO Display board, .. I tried to verify/compile your attack game and sadly am getting errors as it cant seem to find these library files:
#include
#include
#include "back.h"
#include "player.h"
#include "enemy.h"
#include "ani.h"
#include "gameover.h"
could it be because my IDE is the 2.0.4 version .. or perhaps it's because the sketch is still located in folder I added onto my Win 11 desktop as indicated in this video? .. and now it can't find the .h files there? I will try again but will use the IDE 1.8.x you are using in the video instead. Thanks Again.. jimS
No, it is simple.. you downloaded my code and thease files was also in folder, but your ide made new folder for .ini file, you just need put all files in same folder.. i hope i explained it right, just check downloaded files and put all files in same folder where .ini file is
@@VolosProjects 😁 Yes, your cool Arcade game is now working ! I simply made a copy of its .h files that unzipped to a folder in my desktop and placed these into the C:\Users\jimxxx\Documents\Arduino\libraries\TFT_eSPI folder where I think my IDE 2.0.4 is looking for such library type files. I'm not sure that was the best way to do it but can't argue with success.. Thank you Again for such a clear and insightful guideline..
If you get this error: enemy.h:1:1: error: stray '\357' in program
int frames=4; To fix: Load enemy.h file into Notepad ++ and switch encoding to UTF-8.
can you tell me which buttons to use to get the TTGO into Upload mode.
In file included from C:\Users\Michael\OneDrive\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:24:
Do you have this error.
Very nice and simple intro to this board. However, sadly, I can not get it to work on two boards. I followed your directions carefully and it loads with no errors but the screen(s) are blank. Please help if you can. RP
So you instaled esp32 board,edited two files in library, saved , chosed ttgo oled board in arduino ide and uploaded and screen is still black? Are you sure you have this board?
In device manager it show exclamtion mark in usb
Will this work for ESP32-S3-Geek?
hey man! your channel is very intereseting. I just bought a LILYGO and I cannot connect to it. I have tried to do everything, I followed your example, but in my screen the option for the PORT is not enabled, I cannot click it
you probably need to install driver for usb chip, you can find it on product pages. if you have win 10 it shoud recognize driver automaticly
@@VolosProjects I have tried in two different WIN10 PC´s, also in fedora and Pop OS
Hello, I can't get other ports on my computer I need help!
I love u
I tried it so much bt there a prob ,usb didnt recognise esp means nothing show any com port
you will need to install driver, go on liliy go site, on product page of t-display and fallow instructions there
Hi is it possible to add an SPI device to this device (TTGO). It does not appear the the SPI buss is available. I would like to retrieve data from a SPI slave and display it on the screen.
Thank you for your time.
W
It is posible, but it is tricky becouse spi but is already used by screen, you will need to use vspi for screen and hspi for device forexample
Do you ever sleep? So many projects... Quick question: Starting last week, when I upload a sketch, it fries my TTGO LoRa32-OLED V1. I've fried three of them in 3 days. Any suggestions? Thanks in advance!
how do you know that is fried?
@@VolosProjects False alarm! I just need to plug in the USB cable before I boot my computer. I'm very relieved. Thank you for answering me! Your videos are excellent, as is your command of English. Are you Polish? Ukrainian? I've been studying Russian for years, and I can still just barely communicate. (I also speak Spanish, Portuguese and French about 9 out of 10.) You do have a foreign accent, but your code is crystal clear, thank you! BTW, I'm the guy who sold the Magic Wand, which was used as the basis for Word, to a 24-year-old Bill Gates in Houston, Texas in 1980 - for almost nothing. What an idiot I was!
@@LesFPinter Thank you for nice comments. I am from Croatia and you are right we have similar accent as Russian or Ukrainian people. I live and work in Croatia and i sleep very little, i wake up in 5 , i dont know why but i cant sleep so i have time for my hobby.....It is nice to meet father of Word, I think Bil Gates and Steve were good in buying stuff :) But you still have your crativity :)
@@VolosProjects I posted a question about problems I had setting up my Arduino IDE for the ESP32 S3 T-Display, but I don't remember where. Can you point me in the right direction? I get the python error messages...
@@LesFPinter did you fallow my instruction video for instaling t-display s3, you can try reinstall or instal python if you dont have it installed on your pc. What Arduino IDE you are using. Are on MAC on on WIN?
how flash original firmware ?
Can you teach me how you do this I can't figure it out
Problem:
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Solution:
Before pressing Upload, hold down EN button (the button to the left of the USB) and only
release once "Connecting..." shows up
my TTgo screen stay black and the blue led flash
I am getting this error while using my ttgo why is that happening could you please help me about it?
"Sketch uses 18280 bytes (59%) of program storage space. Maximum is 30720 bytes.
Global variables use 1882 bytes (91%) of dynamic memory, leaving 166 bytes for local variables. Maximum is 2048 byte"
did you select correct board in board manager, you need to select TTGO Lora32 OLED
@@VolosProjects yes i did but still same :( I am working with a sensor and I want to see some datas in the serial monitor but its empty there. Is it possible to see the datas on the serial monitor while using this board?
NO me aparece el puerto/I do not see the port
Do you have a recommendation for which model to choose?
CH304K 4MB
CH9102F 16MB
CP2104 4MB
Thanks!
Any will be fine, i always use 4mb models so all my sketches work on 4mb
@@VolosProjects Amazing, thanks very much for your reply! And thanks for the channel!
These Boards are a pain in the ass. I cant even find the driver because i have no clue which version i have.
Hi When i Compile it i get TFT_BL was not declared in this scope
Check your libraries, are they updated
I get the following errors when I try to upload it:
In file included from C:\Downloads\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:5:0:
enemy.h:1:1: error: stray '\357' in program
int frames=4;
^
enemy.h:1:1: error: stray '\273' in program
enemy.h:1:1: error: stray '\277' in program
exit status 1
stray '\357' in program
I googled this and apparently this one .h file contains the UTF-8 Byte Oder Marker. I was able to resolve the problem by putting the cursor at the start of the firs line and pressing backspace to delete the illegal characters. The other .h files seem to be fine. I'm using Windows 10. I downloaded them as a zip file from Github as you did in the video.
Try to delete empty lines in .h file, this is error that came with new versions of IDE
@@VolosProjects Interesting. It's curious that only the enemies.h file is affected. As I said, I got it working by (presumably) deleting the invisible characters at the start. Any idea why only enemies.h was affected?
@@VolosProjects same thing happened to me, and I can confirm that deleting all the blank spaces in the enemy.h file worked and it compiled correctly after that. Thank you to Volos and Ytubeleo
congratulations on your vlog. I have a problem, I can't get the ttgo card to be detected by my Windows 10. Cás you hep me
problem solved. damaged usb cable. :-)
Not sure why but in 2021 this is not working with these libraries and arduino 1.8 Spent a lot of time trying to get it to compile.
What eror your are getting?
Thanks kindly for the reply. I actually managed to just get it to compile by removing frames=4 line. The wifi weather station tho. I spent a good 2h trying to get that one to compile. Issues with wifi library and type casting issues.
So stray error
Code doesn't compile, says TFT_BL was not declared!
So it's a problem with your SW or settings. You probably don't have the right libraries.
"TFT_BL' wass not declared in this scope" anyone have a solution
update your tft_espi library.
error persists
Arduino: 1.8.15 (Windows 10), Плата:"TTGO LoRa32-OLED V1, 80MHz, 921600, None"
In file included from C:\Users\79994\Desktop\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:5:0:
enemy.h:1:1: error: stray '\357' in program
int frames=4;
^
enemy.h:1:1: error: stray '\273' in program
enemy.h:1:1: error: stray '\277' in program
exit status 1
stray '\357' in program
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
"Показать подробный вывод во время компиляции"
Удалите пробел в начале файла enemy.h
Delete space in file enemy.h
no funciona
In file included from C:\Program Files (x86)\Arduino\1_mode_\TTGOAlienAttack-main\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:5:0:
enemy.h:1:1: error: stray '\357' in program
int frames=4;
^
enemy.h:1:1: error: stray '\273' in program
enemy.h:1:1: error: stray '\277' in program
exit status 1
stray '\357' in program
Go to the .h files in folder and delite line frames
@@VolosProjects I deleted the line. compiled and
In file included from C:\TTGOAlienAttack\TTGOAlienAttack.ino:5:0:
enemy.h:1:1: error: stray '\357' in program
^
enemy.h:1:1: error: stray '\273' in program
enemy.h:1:1: error: stray '\277' in program
exit status 1
stray '\357' in program
I had this same problem on a MacBook Air M1..I used sublime text and saved the enemy.h file with encoding Western (Windows 1252) and that fixed it for me
Просто удалил строку и все отлично 👌🏻
@@VolosProjects I had the same problem. I simply deleted the line: int frames=4. Problem solved 🙂
In file included from C:\Program Files (x86)\Arduino\1_mode_\TTGOAlienAttack-main\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:5:0:
enemy.h:1:1: error: stray '\357' in program
int frames=4;
Someone else posted a fix, but hopefully another post will help someone find the fix.
The Enemy.h file is saved as a UTF-8 BOM file, and needs to just be UTF-8.
Download Notepad++ and open the file. Go to the top and look for encoding and you should be able to figure it out from there. It compiles fine now!
@patufetselaer3651 was the person I saw post the fix.
thank you 👍
Hi im just getting this error no matter what system i try to flash the code with windows 10 pc or windows 11 laptop "Arduino: 1.8.19 (Windows 10), Board: "TTGO LoRa32-OLED V1, 80MHz, 921600, None"
Sketch uses 819162 bytes (62%) of program storage space. Maximum is 1310720 bytes.
Global variables use 14088 bytes (4%) of dynamic memory, leaving 280824 bytes for local variables. Maximum is 294912 bytes.
esptool.py v3.0-dev
Serial port COM12
Connecting...
Traceback (most recent call last):
File "esptool.py", line 3682, in
File "esptool.py", line 3675, in _main
File "esptool.py", line 3330, in main
File "esptool.py", line 512, in connect
File "esptool.py", line 492, in _connect_attempt
File "esptool.py", line 431, in sync
File "esptool.py", line 369, in command
File "esptool.py", line 332, in write
File "site-packages\serial\serialwin32.py", line 323, in write
serial.serialutil.SerialTimeoutException: Write timeout
Failed to execute script esptool
An error occurred while uploading the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences."
I cannot get these TTGO boards to connect to my mac: Has anyone had this issue? followed the istructions to the letter.
---
Sketch uses 293873 bytes (22%) of program storage space. Maximum is 1310720 bytes.
Global variables use 21716 bytes (7%) of dynamic memory, leaving 273196 bytes for local variables. Maximum is 294912 bytes.
esptool.py v4.5.1
Serial port /dev/cu.usbmodem568B0255451
Connecting.....
Chip is ESP32-D0WDQ6-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: b0:b2:1c:4f:07:68
Uploading stub...
A fatal error occurred: Failed to write to target RAM (result was 01070000: Operation timed out)
Failed uploading: uploading error: exit status 2
hi. How can I solve this problem?
C:\Arduino IDE\sketch\alienarack\alienarack.ino: In function 'void setup()':
C:\Arduino IDE\sketch\alienarack\alienarack.ino:58:3: error: 'ledcSetup' was not declared in this scope
58 | ledcSetup(pwmLedChannelTFT, pwmFreq, pwmResolution);
| ^~~~~~~~~
C:\Arduino IDE\sketch\alienarack\alienarack.ino:59:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
59 | ledcAttachPin(TFT_BL, pwmLedChannelTFT);
| ^~~~~~~~~~~~~
| ledcAttach
exit status 1
Compilation error: 'ledcSetup' was not declared in this scope
Hi,
Love your vlogs.
This one gives me a compilation error though.
**********************************************************
In file included from F:\Programming\Arduino\TTGO\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:5:
F:\Programming\Arduino\TTGO\TTGOAlienAttack-main\TTGOAlienAttack\enemy.h:1:1: error: 'int' does not name a type
1 | int frames=4;
| ^~~~~~
F:\Programming\Arduino\TTGO\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino: In function 'void setup()':
F:\Programming\Arduino\TTGO\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:58:3: error: 'ledcSetup' was not declared in this scope
58 | ledcSetup(pwmLedChannelTFT, pwmFreq, pwmResolution);
| ^~~~~~~~~
F:\Programming\Arduino\TTGO\TTGOAlienAttack-main\TTGOAlienAttack\TTGOAlienAttack.ino:59:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
59 | ledcAttachPin(TFT_BL, pwmLedChannelTFT);
| ^~~~~~~~~~~~~
| ledcAttach
**************************************************
Implementing the solution posted by patufetselaer3651 solved those problems. Thanks patufetselaer3651
It actually already went pearshaped with the TFT_Print_Test example:
**************************************************
In file included from c:\Users\Frank\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:24:
c:\Users\Frank\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32.c: In member function 'void TFT_eSPI::begin_SDA_Read()':
c:\Users\Frank\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32.c:72:3: error: 'gpio_set_direction' was not declared in this scope
72 | gpio_set_direction((gpio_num_t)TFT_MOSI, GPIO_MODE_INPUT);
| ^~~~~~~~~~~~~~~~~~
c:\Users\Frank\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32.c: In member function 'void TFT_eSPI::end_SDA_Read()':
c:\Users\Frank\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32.c:87:3: error: 'gpio_set_direction' was not declared in this scope
87 | gpio_set_direction((gpio_num_t)TFT_MOSI, GPIO_MODE_OUTPUT);
| ^~~~~~~~~~~~~~~~~~
****************************************************
Eventually, after scrubbing the system of any Arduino related files, doing a clean installation of IDE 2.3.2, keeping all defaults, and following your instructions to the letter, didn't get rid of the problem. Replacing the esp32 v 3.0.2 boards package (by espressif) with version 2.0.17 in the boards manager solved that problem (thanks espressif?). This solved most other problems I got from compiling for ESP boards as well. AlienAttack now happily compiles, uploads and runs like a charm.
P.S. Nobody ever told us computing was ging to be a breeze...
So Nice 💘💘💘💘💘💘
Really fun! Thank you~
Thanks for your tutorial...