Open lilibp opened 2 weeks ago
I ended up writing this code's function, but Mbappe will be tasked with writing the unittest for it.
Comme promis j'ai pu mettre sur pieds un unitest hier(11-25-2024) que j'ai dans mon IDe Thonny.Je vais pouvoir le presenter en cour aujourd'hui aussi avec ma partie de code.
Purpose:
The
map_potentiometer
function maps potentiometer analogue values into X,Y coordinates on the paper.Inputs:
analogue_value
(int): User input: the value of a knob on the board.Outputs:
coordinate
(float): The associated coordinate.Notes:
Determine min/max values of the potentiometer and paper surface. Should these values be hard-coded into this function or should they be determined in the main function?