Open LDP-Soft opened 2 years ago
Memory usage change @ d8a904ff0cda8679171e390a0199b31e88b3a0f7
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:avr:LilyPadUSB | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:atmegang:cpu=atmega168 | :small_red_triangle: 0 - +40 | 0.0 - +0.28 | :small_red_triangle: 0 - +2 | 0.0 - +0.2 |
arduino:avr:atmegang:cpu=atmega8 | :small_red_triangle: 0 - +40 | 0.0 - +0.56 | :small_red_triangle: 0 - +2 | 0.0 - +0.2 |
arduino:avr:bt:cpu=atmega168 | :small_red_triangle: 0 - +40 | 0.0 - +0.28 | :small_red_triangle: 0 - +2 | 0.0 - +0.2 |
arduino:avr:bt:cpu=atmega328 | :small_red_triangle: 0 - +40 | 0.0 - +0.14 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:chiwawa | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:circuitplay32u4cat | 0 - 0 | 0.0 - 0.0 | 0 - 0 | N/A |
arduino:avr:diecimila:cpu=atmega168 | :small_red_triangle: 0 - +40 | 0.0 - +0.28 | :small_red_triangle: 0 - +2 | 0.0 - +0.2 |
arduino:avr:diecimila:cpu=atmega328 | :small_red_triangle: 0 - +40 | 0.0 - +0.13 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:esplora | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:ethernet | :small_red_triangle: 0 - +40 | 0.0 - +0.12 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:fio | :small_red_triangle: 0 - +40 | 0.0 - +0.13 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:gemma | 0 - 0 | 0.0 - 0.0 | 0 - 0 | N/A |
arduino:avr:leonardo | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:leonardoeth | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:lilypad:cpu=atmega168 | :small_red_triangle: 0 - +40 | 0.0 - +0.28 | :small_red_triangle: 0 - +2 | 0.0 - +0.2 |
arduino:avr:lilypad:cpu=atmega328 | :small_red_triangle: 0 - +40 | 0.0 - +0.13 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:mega:cpu=atmega1280 | :small_red_triangle: 0 - +40 | 0.0 - +0.03 | :small_red_triangle: 0 - +2 | 0.0 - +0.02 |
arduino:avr:mega:cpu=atmega2560 | :small_red_triangle: 0 - +44 | 0.0 - +0.02 | :small_red_triangle: 0 - +2 | 0.0 - +0.02 |
arduino:avr:megaADK | :small_red_triangle: 0 - +44 | 0.0 - +0.02 | :small_red_triangle: 0 - +2 | 0.0 - +0.02 |
arduino:avr:micro | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:mini:cpu=atmega168 | :small_red_triangle: 0 - +40 | 0.0 - +0.28 | :small_red_triangle: 0 - +2 | 0.0 - +0.2 |
arduino:avr:mini:cpu=atmega328 | :small_red_triangle: 0 - +40 | 0.0 - +0.14 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:nano:cpu=atmega168 | :small_red_triangle: 0 - +40 | 0.0 - +0.28 | :small_red_triangle: 0 - +2 | 0.0 - +0.2 |
arduino:avr:nano:cpu=atmega328 | :small_red_triangle: 0 - +40 | 0.0 - +0.13 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:nano:cpu=atmega328old | :small_red_triangle: 0 - +40 | 0.0 - +0.13 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:one | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:pro:cpu=16MHzatmega168 | :small_red_triangle: 0 - +40 | 0.0 - +0.28 | :small_red_triangle: 0 - +2 | 0.0 - +0.2 |
arduino:avr:pro:cpu=16MHzatmega328 | :small_red_triangle: 0 - +40 | 0.0 - +0.13 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:pro:cpu=8MHzatmega168 | :small_red_triangle: 0 - +40 | 0.0 - +0.28 | :small_red_triangle: 0 - +2 | 0.0 - +0.2 |
arduino:avr:pro:cpu=8MHzatmega328 | :small_red_triangle: 0 - +40 | 0.0 - +0.13 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:robotControl | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:robotMotor | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:uno | :small_red_triangle: 0 - +40 | 0.0 - +0.12 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:unomini | :small_red_triangle: 0 - +40 | 0.0 - +0.12 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:unowifi | :small_red_triangle: 0 - +40 | 0.0 - +0.12 | :small_red_triangle: 0 - +2 | 0.0 - +0.1 |
arduino:avr:yun | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:yunmini | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
Justification:
Peek is insufficient to glean data in the serial queue, it is often needed to look at the last character in the buffer.
Implementation:
Added peekLast() method to allow peeking at the last character in the buffer. The method follows behavior of other peek and read method, has no input or output parameters, uses integer for return data type and returns -1 if the queue is empty.
Testing/Validation:
Tested with multiple different queue sizes, including 0. Ops check good.