Espruino/targets/esp32/jshardwareAnalog.h
jumjum123 1973a776a9 Added reset function to jshreset for
- SPI
- ADC
- UART
- PULSE
2017-03-03 11:59:35 +01:00

26 lines
848 B
C

/*
* This file is designed to support Analog functions in Espruino for ESP32,
* a JavaScript interpreter for Microcontrollers designed by Gordon Williams
*
* Copyright (C) 2016 by Juergen Marsch
*
* This Source Code Form is subject to the terms of the Mozilla Publici
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* ----------------------------------------------------------------------------
* This file is designed to be parsed during the build process
*
* Contains ESP32 board specific functions.
* ----------------------------------------------------------------------------
*/
#include "jspininfo.h"
void ADCReset();
void initADC(int ADCgroup);
int readADC(Pin pin);
void rangeADC(Pin pin,int range);
void writeDAC(Pin pin,uint8_t value);