Skip to content

Commit

Permalink
fix avr
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Jan 24, 2025
1 parent cce029c commit ec41523
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/ST7796S_demo/ST7796S_demo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ void loop() {
show_char_map();
show_custom_text();
show_bitmap();

#if !defined(__AVR__)
// we dont have the RAM or Flash for canvas
show_canvas();
#endif

if (++rotate > 3) rotate = 0; // Cycle through screen rotations 0-3
display.setRotation(rotate); // Takes effect on next drawing command
Expand Down

0 comments on commit ec41523

Please sign in to comment.