daveruiz / doom-nano

A 3d raycast engine for Arduino
278 stars 60 forks source link

HOW CAN I USE ST7735 DISPLAY WITH THE CODE #12

Open eydoooo opened 6 months ago

eydoooo commented 6 months ago

i cant use st7735 with the code and im a beginner so im not sure what to change in the code

simplyrohan commented 1 month ago

I'm currently working on it. I'll let you know if I get it to work

simplyrohan commented 1 month ago

https://github.com/simplyrohan/doom-nano

In constants.h set your your display to color or not. Also in display.h set the pins for your screen

eydoooo commented 3 weeks ago

Are these the only steps? I'm currently not home yet and i will work on it as soon as im home. Also Thanks for helping me.

https://github.com/simplyrohan/doom-nano

In constants.h set your your display to color or not. Also in display.h set the pins for your screen

simplyrohan commented 1 week ago

You may need to make some hardware adjustments but they should mostly be in display.h and constants.h. Also, you will need to adjust for if you have INPUT_PULLUP buttons or not. Let me know if you have questions

simplyrohan commented 1 week ago

You can also check the commit that I made that contained all the changes I made. Commit

eydoooo commented 1 week ago

You can also check the commit that I made that contained all the changes I made. Commit

Thanks alot for helping me. I'm guessing the commit is the changed display.h/constant.h code? I'm not really used to github so most of the things I don't know just yet.

simplyrohan commented 1 week ago

Yup, that's correct! But all of those use my display and hardware setup. Just change the pin definitions (they are all labeled) to your setup

eydoooo commented 1 week ago

Yup, that's correct! But all of those use my display and hardware setup. Just change the pin definitions (they are all labeled) to your setup

Thanks man your a G

simplyrohan commented 1 week ago

Let me know if it works

eydoooo commented 1 week ago

Let me know if it works

i get this error class Adafruit_SSD1306<128, 64>' has no member named 'fillScreen im guessing its related to the display.h code but i cant find it.

simplyrohan commented 1 week ago

I think you are using the old display.h (in this repository). It seems you are only using my main script. To use all if my modifications use git clone https://github.com/simplyrohan/doom-nano

You will need to redo the changes though

eydoooo commented 1 week ago

I think you are using the old display.h (in this repository). It seems you are only using my main script. To use all if my modifications use git clone https://github.com/simplyrohan/doom-nano

You will need to redo the changes though

im sorry i didnt quiet understand. can u please explain to me in monkey terms?😊

EDIT: ok so i opened the link u provided me (https://github.com/simplyrohan/doom-nano) and it took me to ur commit which i then downloaded the zip file and when i opened it it still gave me the same error.

simplyrohan commented 1 week ago

Hmm strange, I'll check it out tommorow