mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-16 10:20:52 -04:00
Add Notepad app (#1010)
* easier 'now', start adding text editor * Adding scrolling to notepad * Better scrolling * Better scrolling, off-by-1 bugs * MVP fit and finish * Add tiny font and use in Notepad * Font tweaking, tiny font cursor * Fix warning * Format changed files --------- Co-authored-by: kallanreed <kallanreed@outlook.com>
This commit is contained in:
parent
693d7864e4
commit
02811b9967
21 changed files with 1316 additions and 56 deletions
|
@ -20,9 +20,12 @@
|
|||
*/
|
||||
|
||||
#include "log_file.hpp"
|
||||
|
||||
#include "string_format.hpp"
|
||||
|
||||
Optional<File::Error> LogFile::write_entry(const std::string& entry) {
|
||||
return write_entry(rtc_time::now(), entry);
|
||||
}
|
||||
|
||||
Optional<File::Error> LogFile::write_entry(const rtc::RTC& datetime, const std::string& entry) {
|
||||
std::string timestamp = to_string_timestamp(datetime);
|
||||
return write_line(timestamp + " " + entry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue