libnds
Loading...
Searching...
No Matches
Functions
slot2solar.h File Reference

Slot-2 solar sensor. More...

#include <stdbool.h>
#include <stdint.h>

Functions

int peripheralSlot2SolarScanFast (void)
 Perform a "fast" solar sensor scan.
 

Detailed Description

Slot-2 solar sensor.

Function Documentation

◆ peripheralSlot2SolarScanFast()

int peripheralSlot2SolarScanFast ( void  )

Perform a "fast" solar sensor scan.

Note that this function stalls IRQs.

TODO: Test on hardware.

Returns
The detected brightness (0 ~ 255, higher is darker), or -1 on failure/timeout.