lp:~dnsunderland/nowhere2nowhere/pwm_module

Created by David Sunderland and last modified
Get this branch:
bzr branch lp:~dnsunderland/nowhere2nowhere/pwm_module
Only David Sunderland can upload to this branch. If you are David Sunderland please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
David Sunderland
Project:
nowhere2nowhere
Status:
Development

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 cycle

bfa/bfa.pde:
* add .pde file for building in Arduino IDE

joystick.*, main.cpp, animation_driver.*:
* add controller for selecting animation mode
* make main mode of operation randomly switch between animations periodically

animation_driver.h:
* reduce the number of pixels from 10 to 8

animation.*:
* 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

3. By Brian Aker <brian@gir>

Merge.

2. By Brian Aker <brian@gir>

Latest code from Mars

1. By Brian Aker <email address hidden>

First commit.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:nowhere2nowhere
This branch contains Public information 
Everyone can see this information.

Subscribers