Skip to content

Conversation

@tomcombriat
Copy link
Owner

No description provided.

@github-actions
Copy link

github-actions bot commented Feb 4, 2025

Memory usage change @ 269146b

Board flash % RAM for global variables %
STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:uno 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board examples/Basics_Serial
flash
% examples/Basics_Serial
RAM for global variables
% examples/Inverses
flash
% examples/Inverses
RAM for global variables
% examples/Mappers
flash
% examples/Mappers
RAM for global variables
% examples/SmartRanges
flash
% examples/SmartRanges
RAM for global variables
%
STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 0 0.0 0 0.0 0 0.0 0 0.0 N/A N/A N/A N/A 0 0.0 0 0.0
arduino:avr:uno 0 0.0 0 0.0 0 0.0 0 0.0 N/A N/A N/A N/A 0 0.0 0 0.0
Click for full report CSV
Board,examples/Basics_Serial<br>flash,%,examples/Basics_Serial<br>RAM for global variables,%,examples/Inverses<br>flash,%,examples/Inverses<br>RAM for global variables,%,examples/Mappers<br>flash,%,examples/Mappers<br>RAM for global variables,%,examples/SmartRanges<br>flash,%,examples/SmartRanges<br>RAM for global variables,%
STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8,0,0.0,0,0.0,0,0.0,0,0.0,N/A,N/A,N/A,N/A,0,0.0,0,0.0
arduino:avr:uno,0,0.0,0,0.0,0,0.0,0,0.0,N/A,N/A,N/A,N/A,0,0.0,0,0.0

@tomcombriat
Copy link
Owner Author

This adds an equivalent FixMath to Arduino's map().

Instead of map() the denominator is only calculated once and inverted when the bounds are set, hence saving a lot of processing time compared to map().

@tomcombriat
Copy link
Owner Author

@tfry-git I think this is quite useful (I already used it in a few project).

I am not very pleased with all the code repetition, but only one attribute changes w/r to the type of mapper, and I did not find a way to do that with templates.... If you have an idea…

@github-actions
Copy link

github-actions bot commented Feb 6, 2025

Memory usage change @ 759394b

Board flash % RAM for global variables %
STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:uno 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board examples/Basics_Serial
flash
% examples/Basics_Serial
RAM for global variables
% examples/Inverses
flash
% examples/Inverses
RAM for global variables
% examples/Mappers
flash
% examples/Mappers
RAM for global variables
% examples/SmartRanges
flash
% examples/SmartRanges
RAM for global variables
%
STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 0 0.0 0 0.0 0 0.0 0 0.0 N/A N/A N/A N/A 0 0.0 0 0.0
arduino:avr:uno 0 0.0 0 0.0 0 0.0 0 0.0 N/A N/A N/A N/A 0 0.0 0 0.0
Click for full report CSV
Board,examples/Basics_Serial<br>flash,%,examples/Basics_Serial<br>RAM for global variables,%,examples/Inverses<br>flash,%,examples/Inverses<br>RAM for global variables,%,examples/Mappers<br>flash,%,examples/Mappers<br>RAM for global variables,%,examples/SmartRanges<br>flash,%,examples/SmartRanges<br>RAM for global variables,%
STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8,0,0.0,0,0.0,0,0.0,0,0.0,N/A,N/A,N/A,N/A,0,0.0,0,0.0
arduino:avr:uno,0,0.0,0,0.0,0,0.0,0,0.0,N/A,N/A,N/A,N/A,0,0.0,0,0.0

@tomcombriat tomcombriat merged commit 6b259aa into main Mar 3, 2025
9 checks passed
@tomcombriat tomcombriat deleted the dev/Mapper branch March 3, 2025 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants