I've got the basic ioio connection going. I can sample 2 analogue pins.
The next step is to try to graph the results.
In dependencies I've got
compile 'com.jjoe64:graphview:4.1.0'
In MainActivity, onCreate I have (commented out)
// graph1 = (GraphView) findViewById(R.id.graph1);
In Looper I have (also commented out)
// LineGraphSeries<DataPoint> series = new LineGraphSeries<>(new
DataPoint[] {
// new DataPoint(0,3), new DataPoint(1,3), new DataPoint(2,6)
// });
In activity_main.xml I have (commented out)
<!-- <com.jjoe64.graphview.GraphView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/graph1"
android:layout_below="@+id/output1"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"/> -->
When I run it I get the message hardware acceleration must be used, but I
have in main.AndroidManifest.xml
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:hardwareAccelerated="true"
android:theme="@style/AppTheme">
Since everything is essentially commented out, the program still runs in the
basic mode.
As soon as I remove the commenting in activity_main.xml, the program crashes.
I don't know if it is because the hardware acceleration isn't really on, or
what else could be wrong?
Any comments would be greatly appreciated.
Thanks,
Ilan
--
You received this message because you are subscribed to the Google Groups
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.