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
U8X8 lib on AVR ATmega #175
Comments
Basically it should work with the C interface. Just include all c and h files from this directory into your project: Use setup procedures from here: There is also an example project for ARM: Additionally you have to write your own gpio procedure... You could also have a look here (ARM project): |
I'm not really programmer, but I can get u8glib working following your wiki's manual. u8glib works well, I only wanted get smaller code size with u8x8, because only textdraw procedure is used. But thank you for your work and support! |
Basically it will be identical to u8glib, except that you have to use different sources. |
I just want to say that I'm in the same situation as @prulitarit ,I'm struggling hard trying to implement u8g2 in Atmel Studio 7 + Atmega328p, even though, I have successfully implemented u8glib and read all the treads about this matter (including SAM, ESP32 and STM implementation). I would appreciate if anyone can throw some light on this particular case. |
you could post some code and try to explain your problem |
Hello @olikraus , after a lot of reading and coffee I think I'm ready to answer to myself. I used code from different issues/users and is working! As I said in my earlier comment, I'm using ATmega328p and a NOKIA 5110 (this uses a PCD8544 driver I guess) in AtmelStudio7. During this coding I faced two issues I didn't know how to solve: All in all, this code is working pretty well right now and I leave it here to users looking for a hints to implement u8g2 for ATmega328p in C environment.. ``
So, What can I do to solve this blinky LCD? In fact I use u8g2 in Arduino and it's awesome, the digits are presented in a very clear way but I don't know how to solve this in C. Finally, is there any improvement I should do to this code? Thanks for your help Oli. Edit: At the end of this writing the LCD got full contrast again, so I'm not sure if this is due to my lack of coding skills or missing contacts in my board. Edit2: Graphic Test fully implemented, check repository https://github.com/maopiccoto/u8g2_Atmega328p_Cenv |
Amazing work. Thanks for your contribution. I have one doubt: What do the commands DDRB |= (1<<DDB5); and PORTB ^=(1<<PINB5); do? Added link to this issue from here: https://github.com/olikraus/u8g2/wiki/Porting-to-new-MCU-platform#system-specific-u8g2-ports |
That's Port configuration for a blinky LED for testing purposes. Maybe you can not see it in the picture but it's there. |
Hello olikraus, |
Did you check https://github.com/olikraus/u8g2/wiki/u8g2as7 ? Note: The C++ API (with constructors) is only possible on Arduino. For any other development environments you can only use the C API (as you can see at the beginning of the thread) |
Hello! I'm trying to get u8x8 lib working in AVR Studio 4, but I can not find any documentation for AVR ATmega. Is u8g8 lib compatible with WinAVR and AVR Studio?
The text was updated successfully, but these errors were encountered: