Advertisement
safwan092

Untitled

May 2nd, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6. // change setup.h to switch between buffered and pixel-by-pixel processing
  7. #include "setup.h"
  8.  
  9.  
  10.  
  11. void setup() {
  12. // This is not necessary and has no effect for ATMEGA based Arduinos.
  13. // WAVGAT Nano has slower clock rate by default. We want to reset it to maximum speed
  14. CLKPR = 0x80; // enter clock rate change mode
  15. CLKPR = 0; // set prescaler to 0. WAVGAT MCU has it 3 by default.
  16.  
  17. initializeScreenAndCamera();
  18. }
  19.  
  20.  
  21. void loop() {
  22. processFrame();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement