MinnowBoard Max
  • Cover
  • Introduction
  • Getting Started
  • Hardware
    • Processor
    • Peripherals
    • Interfaces
    • PCIe
  • Customization
    • Lures
  • Build Systems
    • Yocto
  • BIOS
  • Operating Systems
  • Linux
    • Installation
    • Kernel
    • Subsystems
      • UART
      • Camera
      • Audio
      • General Purpose Input Output
      • I2C
      • Pwm
      • Serial Peripheral Interface
      • Led
    • Package Management
    • Libraries
      • MRAA
      • UPM
  • Programming Languages
    • Python
      • Calamari Lure
        • Main
        • 7 Segments
        • Buttons
        • Pulse Width Modulation
        • Red Green Blue
  • SandBox
Powered by GitBook
On this page
  1. Programming Languages
  2. Python
  3. Calamari Lure

Main

#!/usr/bin/python

import argparse

if __name__ == '__main__':

    parser = argparse.ArgumentParser(description='MinnowBoard Max Workshop')
    parser.add_argument('-c', '--calamari', help='Calamari Mode')
    args = parser.parse_args()

    if args.calamari == 'rgb':

        from crgb import Crgb

        crgb = Crgb()
        crgb.start()

    if args.calamari == '7seg':

        from c7seg import C7seg

        c7seg = C7seg()
        c7seg.start()

    if args.calamari == 'pwm':

        from cpwm import Cpwm

        cpwm = Cpwm()
        cpwm.start()

    if args.calamari == 'buttons':

        from cbuttons import Cbuttons

        cbuttons = Cbuttons()
        cbuttons.start()

# End of File
PreviousCalamari LureNext7 Segments

Last updated 7 years ago