[Swlug] ATTiny88 continues to fascinate and frustrate

Rhys Sage rhys_sage at yahoo.com
Sat Apr 15 15:54:25 UTC 2023


I'd pretty much given up on the ATTiny88 being usable. It is, however, proving to be a source of curious entertainment.

I just tried to run a very basic speed test on it but it does not seem to like the very basic C++ code I throw at it. I suspect the problem is the lack of various libraries. Among those is a curious lack of support for stdio and iostream.

Meanwhile my tri-pack of Arduino Nano Every arrived. I learned long ago to buy microcontrollers in multiples. I did want to do a speed test on the ATTiny88 but it didn't want to cooperate. I thought it'd be fun to speed test the Pi Pico, ATTiny88 and Arduino Nano Every side-by side. I thought this code should work but it doesn't. Oh well, back to the real Arduino.

#include <math.h>
#include <iostream.h>
int count;
void setup() {
  count = 0;
}
void loop() {
  count++;
  cout <<count<<:   ";

Arduino: 1.8.19 (Linux), Board: "ATtiny88 (Micronucleus, MH-ET t88 w/16MHz CLOCK), Enabled, 16 MHz (external 16MHz, USB), MH Tiny, B.O.D. Enabled (4.3v), Reset, Upgrade (via USB, fuses unchanged), Always, Enabled, Port A (pins 23~26)"

sketch_apr15a:2:10: fatal error: iostream.h: No such file or directory
 #include <iostream.h>
          ^~~~~~~~~~~~
compilation terminated.
exit status 1
iostream.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Very intriguing. I'll keep the ATTiny88 on the back burner for the moment while I try to achieve something using the Arduinos.

Rhys Sage



More information about the Swlug mailing list