Skip to content

If you have a Raspberry Pi and SenseHat, you can use my module to show fireworks on SenseHat!

License

Notifications You must be signed in to change notification settings

AndrePinheiroPT/FireWorks-For-SenseHat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Firework Module

Welcome to my work, In this work I built a python module to use in your RaspberryPi and SenseHat!

Hardware

For you use this module you need:

  • RaspberryPi
  • SenseHat

If you don't have a RaspberryPi or SenseHat, you can use a SenseHat emulator, for exemple: Trinket

How to use?

  1. You need install 3 modules:
    1. time
    2. random
    3. sensehat
  2. Download the FireWorkModule.py
  3. Add the module in your program
  4. Run :)

Command

import FireWorkModule

FireWorkModule.fire()
FireWorkModule.explosion()
FireWorkModule.stick()

Params for FireWorkModule.fire() and FireWorkModule.stick()

  • Length
  • Color
  • Limit
  • Ground
  • Background
  • Velocity

Params for FireWorkModule.explosion()

  • Point
  • Color
  • Velocity
  • Background
  • Length

Contributing

Pull requests are welcome in this work, For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Licence

MIT

About

If you have a Raspberry Pi and SenseHat, you can use my module to show fireworks on SenseHat!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages