Make voltmeter style measurements with the Propeller Activity Board.
http://learn.parallax.com/propeller-c-simple-circuits/measure-volts
cmake_minimum_required(VERSION 3.3)
project(Simple_MeasureVolts)
create_simple_executable(${PROJECT_NAME} MeasureVolts_Demo.c)
#include "simpletools.h"
#include "adcDCpropab.h"
{
adc_init(21, 20, 19, 18);
float v2, v3;
while (1)
{
v2 = adc_volts(2);
v3 = adc_volts(3);
putChar(HOME);
print("A/D2 = %f V%c\n", v2, CLREOL);
print("A/D3 = %f V%c\n", v3, CLREOL);
pause(100);
}
}