Meditations on the ATTINY85
nice! I’m impressed with how readable this style of displaying text is!! đź’™
It Is inspired by Spreed and RSVP speed reading apps. I was surprised the first time I tried them too, perfect project to try and max out the ATTINY!
I’ve been developing a little proto-shield to explore uses for a crop of Atmel ATTINY85 I can across at an industrial surplus store. Here is a little “E-reader” in the style of Spreed or RSVP.
I thought people here might appreciate this. The ATTINY85 really forces you to be clever with memory allocation and gpio utilization!
Did you write it in C++ or assembly?
Code for ATINY85 is in Assembly. Pre-compile text compression and glyph mapping are in C++.
Arduino environment, C++ compiled before uploading… No?…
A Bresenham routine in C++ creates a binary for the Din font glyphs. An LZSS Heatshrink algorithm in C++ compresses an input string from a .txt file.
The code on the tiny itself is my attempt at inline assembly using as little C as is necessary for sanity. Tiny is the perfect platform for learning assembly instruction principles with imo as it doesn’t overwhelm you with abstraction and there is nothing between the code and the hardware… Unless you want there to be!
Make it scroll left instead of page flip!
That’s an option in the main menu ;)
Impressive for attiny85
Cool project. Love the ATtiny85. Thanks for sharing it!
I use the tiny series in almost all my products I design. They are so underrated for how quickly someone can spool up a program, and they are unbelievably robust.
At only 8Mhz, it seems slow on paper, but because nearly everything runs single cycle, things still move super fast.
I would kill to have 16kB variants, but that is what the new series does best. Many times I pre-load the 512B EEPROM with all the constants I need (lookups, tone tables, calibration constants, etc.) just to get a bit more storage.
One thing that isn’t so well know about the Tiny85 is it is the only one in the tiny series (and still is) with a phase locked loop. You can turn it on to get a 64MHz fast PWM for genuine audio playback or extremely smooth motor control. You can also set an 8x prescaler and use it as the Tiny85’s clock. By sacrificing a few uS of startup time (to stabilize the PLL), you can run the chip natively at 16MHz without an external crystal.