bitcraze / lps-node-firmware

GNU Lesser General Public License v3.0
82 stars 79 forks source link

Added power menu #43

Closed guglie closed 5 years ago

guglie commented 5 years ago

Added a trivial section in the serial menu to set power.

For now it supports 10 levels for simplicity using digits 0-9. The levels 0-9 are linearly mapped to the power from 3.5dB to 33.5dB.

This is a simple way of doing it, but maybe it could be useful for others.

The function changePower can accept more detailed levels. E.G. setting POWER_LEVELS to 100 and writing code to read two digits in the power menu).

krichardsson commented 5 years ago

Thanks!