lp:~dnsunderland/nowhere2nowhere/pwm_module
- Get this branch:
- bzr branch lp:~dnsunderland/nowhere2nowhere/pwm_module
Branch merges
- Brian Aker: Pending requested
-
Diff: 1485 lines (+1411/-0)11 files modifiedanimation.cpp (+419/-0)
animation.h (+125/-0)
animation_driver.cpp (+110/-0)
animation_driver.h (+137/-0)
bfa.pde (+52/-0)
fade.h (+49/-0)
joystick.cpp (+45/-0)
joystick.h (+34/-0)
main.cpp (+79/-0)
pwm.cpp (+297/-0)
pwm.h (+64/-0)
Branch information
Recent revisions
- 9. By David Sunderland
-
Flip red and blue channels in animation driver to match real arrow wiring.
Add two animations:
PinwheelAnimation
MorseCodeAnimation - 8. By David Sunderland
-
Several changes in this release:
pwm.cpp:
* fix bug in actionStep which causes slower PWM cycle by extending highest level (255) to the end of the PWM cyclebfa/bfa.pde:
* add .pde file for building in Arduino IDEjoystick.*, main.cpp, animation_driver.*:
* add controller for selecting animation mode
* make main mode of operation randomly switch between animations periodicallyanimation_driver.h:
* reduce the number of pixels from 10 to 8animation.*:
* add ColorCycleAnimation, which cycles through primary colors
* fix FadeAnimation to fade incrementally through primary colors
* add WaveAnimation, which sends a pulse from the tail to the head of the arrow
* add RandomAnimation, which randomly changes the color of pixels - 7. By David Sunderland
-
Add new interface for running animations. For now, just two basic animations (arrow blinks, and arrow cycles red-green-blue), with a main loop that switches between them every 15 seconds.
removed:
effects.cpp
effects.h
added:
animation.cpp
animation.h
animation_driver. cpp
animation_driver. h
modified:
main.cpp
pwm.cpp - 6. By David Sunderland
-
Fix performance problems with PWM interrupt code by unrolling loop and removing branches. Add framework for defining animation sequences, with a base color cycle (red, green, blue) animation.
- 5. By David Sunderland
-
PWM module is now manually tested on ATmega2560. Added simple main program for demonstrating PWM; it is clear that our software PWM is currently quite inferior (in terms of frequency--very noticable flicker) to the hardware PWM, and slow to boot. But, it works.
added:
fade.h
main.cpp
modified:
pwm.cpp
pwm.h - 4. By David Sunderland
-
Initial checkin: factor PWM logic from Groovix code into a separate module. Add support for the pin mappings on Arduino Mega 2560 (though it should probably work for any model).
added:
pwm.cpp
pwm.h
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:nowhere2nowhere