This file contains hidden or 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
| #include <stdio.h> | |
| #include "serial.h" | |
| #include <avr/pgmspace.h> | |
| int main(void) { | |
| serial_init(19200); | |
| int i; | |
| char buffer[8]; |
This file contains hidden or 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
| #include <avr/io.h> | |
| #include <avr/interrupt.h> | |
| #include <stdbool.h> | |
| /* | |
| * A global flag used to communicate between the Interrupt Service Routine | |
| * and the main program. It has to be declared volatile or the compiler | |
| * might optimize it out. | |
| */ | |
| volatile bool update = false; |
This file contains hidden or 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
| #include <avr/io.h> | |
| #include <avr/interrupt.h> | |
| #include <util/atomic.h> | |
| #include <util/delay.h> | |
| #include <stdbool.h> | |
| /* | |
| * A global flag used to communicate between the Interrupt Service Routine | |
| * and the main program. It has to be declared volatile or the compiler | |
| * might optimize it out. |
This file contains hidden or 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
| #pragma once | |
| #include <imgui.h> | |
| #include <imgui_internal.h> | |
| // ImDrawList methods to display vertical text | |
| /* | |
| // TEST: inside a window: | |
| ImGuiWindow* window = ImGui::GetCurrentWindow(); | |
| ImDrawList* dl = window->DrawList; |
This file contains hidden or 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
| # | |
| # STL GDB evaluators/views/utilities - 1.03 | |
| # | |
| # The new GDB commands: | |
| # are entirely non instrumental | |
| # do not depend on any "inline"(s) - e.g. size(), [], etc | |
| # are extremely tolerant to debugger settings | |
| # | |
| # This file should be "included" in .gdbinit as following: | |
| # source stl-views.gdb or just paste it into your .gdbinit file |
NewerOlder