Skip to content

Commit

Permalink
PicoVector: Fix C++ example compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBell committed Nov 17, 2024
1 parent a4adf0d commit 7a0fb98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/pico_display_2/pico_display_2_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ int main() {
pp_mat3_translate(&pos, 50, 50);
pp_mat3_rotate(&pos, a);
vector.draw(poly);
vector.text("Hello World", &pos);
vector.text("Hello World", 0, 0, &pos);

// update screen
st7789.update(&graphics);
Expand Down
4 changes: 2 additions & 2 deletions examples/pico_w_explorer/pico_w_explorer_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ int main() {

vector.draw(poly);

//pp_mat3_t t = pp_mat3_identity();
//vector.text("Hello World", {0, 0}, &t);
pp_mat3_t t = pp_mat3_identity();
vector.text("Hello World", 0, 0, &t);

// update screen
st7789.update(&graphics);
Expand Down

0 comments on commit 7a0fb98

Please sign in to comment.