Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compass 0.02 - show text if uncalibrated #316

Merged
merged 2 commits into from Apr 17, 2020

Conversation

Purple-Tentacle
Copy link
Contributor

@Purple-Tentacle Purple-Tentacle commented Apr 17, 2020

No description provided.

@Purple-Tentacle Purple-Tentacle changed the title Compass 0.02 - show test if uncalibrated Compass 0.02 - show text if uncalibrated Apr 17, 2020
@Purple-Tentacle
Copy link
Contributor Author

@Purple-Tentacle Purple-Tentacle commented Apr 17, 2020

As the history somehow shows everything as changed, here is what I changed:

g.fillRect(0,0,230,40);

if (isNaN(m.heading)) { g.setFontAlign(-1,-1); g.setFont("6x8",2); g.drawString("Uncalibrated",50,12); g.drawString("turn 360° around",25,26); } else { g.setFontAlign(0,0); g.setFont("6x8",3); g.drawString(Math.round(m.heading),120,12); }

@gfwilliams
Copy link
Member

@gfwilliams gfwilliams commented Apr 17, 2020

Neat, thanks! I guess maybe line endings got changed somehow.

@gfwilliams gfwilliams merged commit 745e4d3 into espruino:master Apr 17, 2020
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants