13.1 Based on the RPiSparkModule class (Spark mode)

Use the RPiSparkModule class in the RPi-Spark framework to quickly build your application.

from JMRPiFoundations.Skeleton.RPiSparkModule import RPiSparkModule
class YourSpark(RPiSparkModule):
    def setup(self):
        #your config code ......

    def run(self):
        #your application ......

Execute the following command in the terminal:

$> rspk YourSpark.py -f

In the previous chapters we already used Spark mode for development. For more details, please refer to the previous chapters.


Was this article helpful?

YES     |     NO


Enjoying the project? Spotted a mistake? Any opinions on the website? Let us know!