micropython-rcv is a micropython module to get input from RC receivers.
Connect the signal pin of the channel you want to use to an input pin on the pyboard.
Example:
import pyb
from rcv import Receiver
pin_ch1 = pyb.Pin.board.X1
rcv = Receiver([pin_ch1])
angle = rcv.get_angle_of_ch[1]
print(angle)
Receiver
This class provides a reader to get input from RC-receivers. Pass a list of pins on which the channels are connected.
get_angle_of_ch(ch)
Returns the angle the Receiver sends on ch.
ch_list
List of pins on which channels are connected.