MCPcopy Create free account
hub / github.com/Santroller/Santroller / Controller

Method Controller

lib/n64_gamecube_controller/Controller.cpp:5–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "Controller.pio.h"
4
5Controller::Controller(InitParams *initParams, uint8_t sizeofControllerState) {
6 _pin = initParams->pin;
7 _pio = initParams->pio;
8 _sm = initParams->sm;
9 _c = initParams->c;
10 _offset = initParams->offset;
11 _sizeofControllerState = sizeofControllerState;
12 _controllerState = new uint8_t[_sizeofControllerState];
13}
14
15void Controller::initPio(InitParams *initParams) {
16 pio_hw_t *pios[2] = {pio0, pio1};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected