-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ssd1306 dma display support, clang-format config (#20)
* add indicator led position; use pico default (since we use that) * remove older ssd1306 things; prepping for dma code * update with cmake stub from latest pico-sdk * wip dma-driven i2c display; note: blocks for 100ms between ops! uses ugui for display writing. need to write isr-driven queue for i2c transactions. gh issue #5 * wip isr driven linked list (not quite working) * fix linked list, turn off malloc mutex, tidy * these @todos are redundant now * sample text whilst i work on positioning * use 5x12 pixel font positioned in a 5x16 area, y+2 offset * crlf -> lf * enable all warnings, warnings are errors * unused variable * if ug_wingetarea fails, a.xs/ys will be used uninited * comment unused code (think it can be removed) * dbg counters case for unknown devices * change compile options to definitions for portability * fix mismatching indentation on enum * clang-format these files to match rest of src * c style reformatting hints * stub of check for device presence * repoint display write to a noop when not available
- Loading branch information
Showing
21 changed files
with
17,115 additions
and
899 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
BasedOnStyle: llvm | ||
|
||
IndentWidth: 4 | ||
UseTab: Never | ||
ColumnLimit: 120 | ||
|
||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterFunction: true | ||
AfterStruct: true | ||
AfterExternBlock: true | ||
AfterEnum: true | ||
|
||
IndentCaseLabels: true | ||
|
||
AllowShortEnumsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
target_sources(amigahid-pico PRIVATE ssd1306.c) | ||
target_sources(amigahid-pico PRIVATE disp_ssd.c ugui.c) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,59 @@ | ||
# ssd1306 support for the Raspberry Pi Pico | ||
# ugui | ||
|
||
The source code within this directory was written by David Schramm, and can be found [in this GitHub repository](https://github.com/daschr/pico-ssd1306). | ||
this path contains the excellent µgui library from achim döbler. | ||
|
||
This source is licensed under the MIT license, a copy of which is included in this directory under the filename [LICENSE](./LICENSE). | ||
this code can be obtained from [github.com/achimdoebler/UGUI](https://github.com/achimdoebler/UGUI). the license follows. | ||
|
||
## license | ||
|
||
``` | ||
/* -------------------------------------------------------------------------------- */ | ||
/* -- µGUI - Generic GUI module (C)Achim Döbler, 2015 -- */ | ||
/* -------------------------------------------------------------------------------- */ | ||
// µGUI is a generic GUI module for embedded systems. | ||
// This is a free software that is open for education, research and commercial | ||
// developments under license policy of following terms. | ||
// | ||
// Copyright (C) 2015, Achim Döbler, all rights reserved. | ||
// URL: http://www.embeddedlightning.com/ | ||
// | ||
// * The µGUI module is a free software and there is NO WARRANTY. | ||
// * No restriction on use. You can use, modify and redistribute it for | ||
// personal, non-profit or commercial products UNDER YOUR RESPONSIBILITY. | ||
// * Redistributions of source code must retain the above copyright notice. | ||
// | ||
/* -------------------------------------------------------------------------------- */ | ||
/* -- MY SPECIAL THANKS GO TO -- */ | ||
/* -------------------------------------------------------------------------------- */ | ||
// Andrey Filimonov (-->https://github.com/Sermus) | ||
// for giving valuable suggestions, reporting bugs and adding several new features. | ||
// Andrey also put a lot of work in the implementaion of anti-aliased font support. | ||
// | ||
// Mikhail Podkur (-->https://github.com/MikhailPodkur) | ||
// for adding cyrillic 8x12 font, checkbox feature and RGB565 support. | ||
// | ||
// Gustavo Denardin | ||
// for giving valuable suggestions regarding real-time os support. | ||
// | ||
// Samuel Kleiser | ||
// for reporting bugs and giving examples how to improve µGUI. | ||
/* -------------------------------------------------------------------------------- */ | ||
/* -- REVISION HISTORY -- */ | ||
/* -------------------------------------------------------------------------------- */ | ||
// Dec 20, 2015 V0.31 Checkbox component with all funtions added. | ||
// Cyrillic font 8x12 added. | ||
// RGB565 color schema added. | ||
// Windows components font could be getted from current GUI by default | ||
// Mar 18, 2015 V0.3 Driver support added. | ||
// Window and object support added. | ||
// Touch support added. | ||
// Fixed some minor bugs. | ||
// | ||
// Oct 20, 2014 V0.2 Function UG_DrawRoundFrame() added. | ||
// Function UG_FillRoundFrame() added. | ||
// Function UG_DrawArc() added. | ||
// Fixed some minor bugs. | ||
// | ||
// Oct 11, 2014 V0.1 First release. | ||
/* -------------------------------------------------------------------------------- */ | ||
``` |
Oops, something went wrong.