Files
RP2350_MIDI_Lighter/Firmware/Core1_ADC.h
Chris 128d42c586 - Fixed drawing of round objects (Circles, Rounded Rects) using a lookup table
- Added function to read out the display_buffer via USB-Serial
 - Added basic structure and files for later complete firmware (still in progress)
 - Added Doc folder with schematic in it
 - Added Python script and batch file to read out the display buffer and open the image in gimp
2025-09-07 08:55:39 +02:00

44 lines
1.0 KiB
C

/*
* ADC.h
*
* Created: Tue Sep 13 2022 19:51:15
* Author Chris
*/
#ifndef CORE1_ADC_H_
#define CORE1_ADC_H_
// ============================================================================================
// Includes
#include <stdlib.h>
#include <stdbool.h>
#include <inttypes.h>
#include "pico/types.h"
#include "pico/stdlib.h"
// ============================================================================================
// Defines
#define ADC_CHANNEL_POT1 3
#define ADC_CHANNEL_POT2 0
#define ADC_CHANNEL_POT3 2
#define ADC_CHANNEL_SUPPLY 1
#define ADC_CHANNEL_SHUNT 4
#define ADC_CHANNEL_REF 5
#define ADC_CHANNEL_GND1 6
#define ADC_CHANNEL_GND2 7
// ============================================================================================
// Datatypes
// ============================================================================================
// Function Declarations
void Core1_ADC_Init();
uint16_t Core1_ADC_Get_Result_Value();
uint16_t Core1_ADC_Get_Result_mV();
#endif /* CORE1_ADC_H_ */