Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Util classes and libraries for the Open-Smartwatch. Issues are tracked in the open-smartwatch-os repository.

License

Notifications You must be signed in to change notification settings

Open-Smartwatch/lib-open-smartwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📌 This repository is now archived...

...because we merged it into the upstream OS. There is no point in keeping it separate anymore, as the OS itself can be cross-compiled now. We decied to still keep this repository online to allow you to still build older versions of the OS, which may still refer to this repository.

Lib Open-Smartwatch

A library that handles maths, animations, conversions, and drawing.

Desktop Compiling Support

You can develop the 2D stuff on your desktop, see the Readme.md in examples/. This speeds up ui development by a lot.

FAQ

1. Can you explain what's the variables cx,cy,start,stop and lineradius ? `void Graphics2D::drawArc(int32_t cx, int32_t cy, float start, float stop, uint16_t steps, uint16_t radius, uint8_t lineRadius, uint16_t color)`
  • cx,cy : the center coordinates of the arc
  • start, stop : the start and stop angles (0 is on top of the circle)
  • steps : number of segments used to draw the arc (bigger is smoother but slower)
  • radius : width/2 of the arc
  • lineRadius : width of the line defined as a radius of a circle drawing the line
  • color : 16 bytes value of the color, check rgb565(uint8_t red, uint8_t green, uint8_t blue) to create colors or use consts like BLACK, WHITE, ...

About

Util classes and libraries for the Open-Smartwatch. Issues are tracked in the open-smartwatch-os repository.

Topics

Resources

License

Stars

Watchers

Forks