Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
Loading...
Searching...
No Matches
embeddedOut.h File Reference

Go to the source code of this file.

Data Structures

struct  embeddedOut_data
 

Macros

#define NOTE_FINAL_AMP   12
 
#define NERF_NOTE_PORP   15
 
#define USE_CONFIG_NUM_LEDS   CONFIG_NUM_LEDS
 

Functions

void UpdateLinearLEDs (embeddedOut_data *eod, embeddedNf_data *end)
 TODO.
 
void UpdateAllSameLEDs (embeddedOut_data *eod, embeddedNf_data *end)
 TODO.
 
uint32_t ECCtoHEX (uint8_t note, uint8_t sat, uint8_t val)
 TODO.
 

Data Structure Documentation

◆ embeddedOut_data

struct embeddedOut_data
Data Fields
uint8_t ledOut[CONFIG_NUM_LEDS *3]
uint16_t ledSpin
uint16_t ledAmpOut[CONFIG_NUM_LEDS]
uint8_t ledFreqOut[CONFIG_NUM_LEDS]
uint8_t ledFreqOutOld[CONFIG_NUM_LEDS]
uint8_t RootNoteOffset

Macro Definition Documentation

◆ NOTE_FINAL_AMP

#define NOTE_FINAL_AMP   12

◆ NERF_NOTE_PORP

#define NERF_NOTE_PORP   15

◆ USE_CONFIG_NUM_LEDS

#define USE_CONFIG_NUM_LEDS   CONFIG_NUM_LEDS

Function Documentation

◆ UpdateLinearLEDs()

void UpdateLinearLEDs ( embeddedOut_data * eod,
embeddedNf_data * end )

TODO.

Parameters
eod
end

◆ UpdateAllSameLEDs()

void UpdateAllSameLEDs ( embeddedOut_data * eod,
embeddedNf_data * end )

TODO.

Parameters
eod
end

◆ ECCtoHEX()

uint32_t ECCtoHEX ( uint8_t note,
uint8_t sat,
uint8_t val )

TODO.

Parameters
note
sat
val
Returns
uint32_t