This repo contains AD7798 peripheral to use with Jumper Virtual Lab.
For more information, visit the docs.
- Ubuntu 16.04
- GCC and Make:
apt install build-essential
- Jumper Virtual Lab
-
Fork this repository on GitHub and clone the new repository onto your Linux machine.
-
Make sure you have the build prerequisites by running the following:
cd /PATH/TO/AD7798/REPO make
-
If everything worked as expected, you should now have a "_build/AD7798.so" file.
-
Copy the .so file from the "_build/" directory to your Jumper Virtual Lab working directory (same one as the "board.json" file).
-
Add the component to your "board.json" file:
{ "name": "AD7798", "id": 2, "type": "Peripheral", "file": "AD7798.so", "config": { "pins": { "cs": 29, "sck": 3, "si": 4, "so": 28 }, "generators": { "conversion": 1 } } }
-
Use this "scenario.json" file for example (you can use data generator id 1 or 2):
{ "DataGenerators": [ { "id": 1, "type": "Constant", "config": { "value": 5412 } }, { "id": 2, "type": "File", "config": { "path": "ad7798_input" } } ] }
Licensed under the Apache License, Version 2.0. See the LICENSE file for more information