-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How did you compile these? #8
Comments
I compiled it using the avr-gcc toolchain and the makefile. The firmware is not written specifically for the Arduino IDE, maybe that's why. Have you already uploaded the precompiled hex file and tried it out? |
Don't have the precompiled hex files. Not in the zip I downloaded. I downloaded this repository. Never did the avr-gcc toolchain. Don't think I've ever seen a tutorial to do so. |
Oh yes, now I added the hex files. |
I must be doing something wrong, I did find a tutorial to install the avr-gcc toolchain and compiled it. loaded it and no go |
Maybe your OLED needs a different init sequence. Maybe this: 0xAE, // display off with #define OLED_INIT_LEN 16 |
Thank you, Ill try. I'm also getting a 128x32 tomorrow. Unfortunately, didn't help. SDA looks pretty clean but SCL looks bad. Will try with a 128 x 32 tomorrow, if it comes. Didn't come, maybe Tues? Thank you |
I must be losing brain cells as I age (I'm 80) I don't see how those commands (I do see a few) correlate to the datasheet. I can see turn oled on and turn it off, but not most of the double commands in the list. I did notice, coming from another program that the turn off display works. Sorry, I wish my learning mode was as when I was 20. :-( |
They mainly set the control and addressing mode. It's maybe better to understand here: https://github.com/wagiminator/MCU-Templates/blob/main/Libraries/gcc/oled_term.h . By the way, it occurred to me that it might help if you took a short break before initializing the OLED (_delay_ms(200); before OLED_init(); in line 264). Perhaps the initialization occurs too quickly after power-on. |
ok, went back to original added a delay, but still nothing. Made your suggested changes and added the delay, no joy. I think I'll put this on hold till I get the 128x32 modules. Amazon is late with them. |
ok got one of these: https://www.amazon.com/dp/B08ZY4YBHL?psc=1&ref=ppx_yo2ov_dt_b_product_details and no joy. |
& means logical AND, ~means logical INVERT, | is a logical OR, << is a shift left. In fact, at the moment I don't know why it doesn't work. Is everything wired correctly? |
Soo, I dug out my old ATtiny10, connected the OLED and tried it out myself. What can I say, it didn't work (anymore) either. I also connected my logic analyzer and identified the problem. The pgm_read_byte function doesn't seem to work (anymore), only zeros are transferred instead of data. Since it definitely worked before then, it may be related to the current avr-gcc version. If I ever find the time, I'll get to the bottom of it. |
So, hopefully I have solved the problem now. Try out the new version. |
The big numbers works fine. the text is still dead? What change did you make? BTW the 128 x 64 also works fine with Big numbers. update: Don't know what happened, but it's working now??? And now it's not?? Something is flakey-not the hookup because big numbers works every time. Update2: started working when I put the logic analyzer on. This oled has the 4.7k resisters, but if I take the logic analyzer off, it stops working, so added 4.7k resisters on SCL and SDA and now the text is working. Close timing? |
Guess we should stop spending time on this. I appreciate you looking into this. |
Try now, the text thing was a little too fast, I slowed it down. |
Yep. That did it. Isn't that function in avr/pgmspace It's not in main.c.? Please excuse my ignorance. been more than 50yrs since I took a college class on C and used a lot of languages except C at work. Most of my work was in Turbo Pascal and I don't remember much from that either. |
Yes, the function is from avr/pgmspace, but it seems that ATtiny10 is not supported there. Oh yes, I remember Pascal ... and Basic of course! ;-) |
I did a LOT in GMAP. Assembly language for the GE 600 line computers. But all my programming was so long ago, I struggle to understand some of the programs I try to play with. I can't even remember all the languages I was trained on. Basic, Fortran IV, C, Pascal (self taught) and some AGOL. Original C (not C++) is the only program other than GMAP that I had formal instruction in. Thank you for putting up with me with this program. I am amazed at what ATMEL packed in this little ATTiny. Almost more than the large GE system I worked on. |
Hey, I just found this page: https://github.com/wagiminator/AVR-Programmer/tree/master Very nice. Do you sell the programmers? Ei: the serial updi programmer?They look very professional. Oops! put this in the wrong place. Sorry.
Joe
On Sunday, March 17, 2024 at 03:36:12 AM MST, Stefan Wagner ***@***.***> wrote:
Yes, the function is from avr/pgmspace, but it seems that ATtiny10 is not supported there.
Oh yes, I remember Pascal ... and Basic of course! ;-)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sorry, I don't sell anything. |
I used arduino (ver 1.8.19) with the attiny10core forTinyOLEDdemo_t10_text. It made a text_demo.ino.{build.variant}.hex file which I loaded into the attiny10 and it doesn't do anything. tried the same with a blink program and it blinks. What did I miss?
Thank you,
Joe
The text was updated successfully, but these errors were encountered: