*/
//! [Interesting]
-#include "maa.hpp"
+#include "mraa.hpp"
int main ()
{
uint16_t adc_value;
- maa::Aio* a0;
+ mraa::Aio* a0;
- a0 = new maa::Aio(0);
+ a0 = new mraa::Aio(0);
if (a0 == NULL) {
- return MAA_ERROR_UNSPECIFIED;
+ return MRAA_ERROR_UNSPECIFIED;
}
for(;;) {
fprintf(stdout, "ADC A0 read %X - %d\n", adc_value, adc_value);
}
- return MAA_SUCCESS;
+ return MRAA_SUCCESS;
}
//! [Interesting]