Advertisement
Gigio2k

Timer 5 Arduino Mega

Dec 7th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. void LaserDriver::changeIntensity(uint8_t newIntensity)
  2. {
  3. // custom implementation
  4. // pin 44 on arduno mega + ramps 1.4 = registro OC5C
  5. // newIntensity [0..255]
  6.  
  7. #if LASER_PIN > -1
  8. // qui dovrei variare il prescaler avendo un range da MIN_F a MAX_F rapportato al valore di newIntensity
  9.  
  10.  
  11. #endif
  12.  
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement