public Program() { _nrf = new Nrf8001(Pins.GPIO_PIN_D4, Pins.GPIO_PIN_D2, Pins.GPIO_PIN_D3, SPI_Devices.SPI1); _trigger = new InputPort(Pins.GPIO_PIN_D0, true, ResistorModes.PullUp); _reload = new InputPort(Pins.GPIO_PIN_D6, true, ResistorModes.PullUp); }
public Program() { _trigger = new InputPort(Pins.GPIO_PIN_D4, true, ResistorModes.PullUp); _nrf = new Nrf8001(Pins.GPIO_PIN_D8, Pins.GPIO_PIN_D9, Pins.GPIO_PIN_D7, SPI_Devices.SPI1); _nrf.AciEventReceived += OnAciEventReceived; _nrf.DataReceived += OnDataReceived; _nrf.Setup(SetupData); }