@@ -30,7 +30,6 @@ besorgen. Das braucht aber eine neue Version der libstdc++6. Deshalb:
3030 apt-get update
3131 apt-get install libstdc++6
3232
33-
3433 git clone https://github.com/vdudouyt/stm8flash.git
3534 cd stm8flash
3635 make
@@ -76,12 +75,13 @@ HardwareSerial
7675Print (without float)
7776digitalWrite()
7877analogRead
79- analogWrite
8078delay
8179
8280implemented and partly working:
81+ analogWrite
8382
8483tested, but not working:
84+ alternateFunctions()
8585
8686not tested
8787ShiftIn()
@@ -91,6 +91,7 @@ ShiftOut()
9191not implemented:
9292yield()
9393SPI
94+ Wire/I2C
9495
9596
9697## Differences to the original Arduino environment
@@ -476,6 +477,25 @@ functions. This allows for three more PWM pins, but maybe it adds to much
476477complexity for the Arduino API. Not sure if it should stay.
477478
478479
480+ ### Performance compared with the original Arduino environment
481+
482+ Benchmarking the original Arduino examples from Arduino 1.0.5. The simple
483+ Blinky cmopiles to 57 bytes of code, the total binary including the sduino
484+ libraries is 1868 Bytes (0x74c).
485+
486+ So far, wiring_analog depends on wiring_digital, even when analogWrite is not
487+ used. This could be solved by compiling the sduino functions separately into
488+ a library.
489+
490+ name code total linked files other than main and wiring
491+ BareMinimum 2 1238 -
492+ Blink 57 1870 wiring_digital
493+ AnalogReadSerial 205 3452 digital, analog, serial, print
494+ DigitalReadSerial 57 3160 digital, serial, print
495+ Fade 226 2189 digital, analog
496+ ReadAnalogVoltage float not yet implemented
497+
498+
479499### Besondere Features, die von Arduino nicht unterstützt werden
480500
481501Input-Capture-Mode: min. für Timer1 auf allen vier Kanälen möglich.
0 commit comments