summaryrefslogtreecommitdiff
path: root/src/drivers
AgeCommit message (Collapse)AuthorFilesLines
2022-06-05Fix various typosluz paz2-3/+3
Found via `codespell -q 3 -S ./src/libs -L ans,doubleclick,trough`
2022-06-05Apply clang-format to all C++ filesFinlay Davidson7-48/+40
2022-06-05Replace C-style casts with static_castFinlay Davidson2-12/+20
2022-05-08Remove lcd from DisplayAppRiku Isokoski1-3/+3
2022-04-29Fix large blacklevel step. Lower 25% of shades are now accessible.Riku Isokoski2-6/+8
There is a large step in brightness from level zero to level one. After experimenting with various ST7789 options, I found that decreasing VDV to 0x10 (-0.4V) fixes this issue. The gamma change reduced the average error in brightness, but with the underlying issue fixed, the gamma change has been reverted.
2022-04-25Tweak gamma on ST7789 and match UI colorsRiku Isokoski2-0/+8
This change will increase the color accuracy of the PineTime and make UI development with the simulator easier.
2022-04-24SpiNorFlash: use C++ style struct in C++ only headerReinhold Gschweicher1-2/+2
`SpiNorFlash.h` is a C++ header, but the `Identification` struct is created in a C style using `typedef struct`. Clang issues a warining about this discrepancy: ``` In file included from /home/nero/repos/pinetime/InfiniSim/InfiniTime/src/systemtask/SystemTask.cpp:13: /home/nero/repos/pinetime/InfiniSim/sim/drivers/SpiNorFlash.h:16:21: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage] typedef struct __attribute__((packed)) { ^ Identification /home/nero/repos/pinetime/InfiniSim/sim/drivers/SpiNorFlash.h:17:9: note: type is not C-compatible due to this default member initializer uint8_t manufacturer = 0; ^~~~~~~~~~~~~~~~~~~~ /home/nero/repos/pinetime/InfiniSim/sim/drivers/SpiNorFlash.h:20:9: note: type is given name 'Identification' for linkage purposes by this typedef declaration } Identification; ^ 1 warning generated. ``` The easy fix is to use a C++ style struct. Also includes code style fix from Riksu9000 Co-authored-by: Riku Isokoski <riksu9000@gmail.com>
2022-01-26Merge pull request #531 from hatmajster/heart-rate-gain-settingJF1-2/+2
Heart rate sensor - HRS gain changed to x8
2022-01-25Hrs3300: changed default gain to x8hatmajster1-2/+2
2021-12-13changed ReadHrs and ReadAls to uint32, and did static_cast instead of hidden ↵Yehoshua Pesach Wallach2-4/+4
cast when using it
2021-12-13order ReadHrs, ReadAls bitwise according to bit orderingYehoshua Pesach Wallach1-2/+2
2021-11-15Move up file header include to topReinhold Gschweicher2-2/+2
2021-11-15Add missing standard includesReinhold Gschweicher1-0/+1
2021-11-15Update includes to to be relative to src directoryReinhold Gschweicher14-17/+17
Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
2021-11-14Fix unresponsive touch panel after update to 1.7 : don't care if device ids ↵Jean-François Milants1-11/+5
are not the ones we expected (until we know more about these communication and IDs issues).
2021-11-07Fix formatting following the code review.Jean-François Milants1-3/+3
2021-11-06Add data validity check and retries in CST816S driver. See ↵Jean-François Milants2-22/+58
https://github.com/InfiniTimeOrg/InfiniTime/issues/763#issuecomment-962436976.
2021-10-23Merge pull request #586 from hubmartin/wake-timeJF2-11/+0
Improve wake-up time
2021-09-16Merge branch 'develop' into wake-timehubmartin5-109/+118
2021-09-15Fix Error screen and optimize GetTouchInfoRiku Isokoski2-10/+8
2021-09-14Merge branch 'develop' into update_touch_driverRiku Isokoski3-9/+45
2021-08-29Merge branch 'develop' into pinmaphubmartin4-102/+74
2021-08-28Merge branch 'develop' into update_touch_driverRiku Isokoski4-76/+55
2021-08-28Merge branch 'twimaster_rework' of https://github.com/Riksu9000/InfiniTime ↵Jean-François Milants2-70/+43
into Riksu9000-twimaster_rework # Conflicts: # src/systemtask/SystemTask.cpp
2021-08-23Remove commented commands completelyhubmartin2-11/+0
2021-08-18Use highest frequency and move mutex creation to InitRiku Isokoski1-1/+4
2021-08-18Automatic error detectionRiku Isokoski2-2/+7
2021-08-16Simplify parameters and cleanupRiku Isokoski2-45/+17
2021-08-15Remove LCD reset and more cmds, save over 200mshubmartin1-8/+8
2021-08-15Remove unnecessary pin_set, save 50mshubmartin1-2/+2
2021-08-12Don't reconfigure pinsRiku Isokoski1-6/+1
2021-08-10Rework TouchHandler into not a taskRiku Isokoski2-10/+5
2021-08-10Explicitly disable pullupRiku Isokoski1-0/+2
2021-08-10Only enable the bus when neededRiku Isokoski1-2/+4
2021-08-09Optimize twiMasterRiku Isokoski2-22/+21
2021-08-04Rename backlight level pinshubmartin1-3/+3
2021-08-03Cleanup, set Pinetime as defaulthubmartin1-41/+17
2021-08-03PinMap with namespace and constexprhubmartin3-9/+44
2021-08-02DRAFT: Put gpio pins to separate filehubmartin2-1/+27
2021-07-18UpdateRiku Isokoski1-1/+1
2021-07-16Fix touch wakeup and code cleanupRiku Isokoski2-5/+10
2021-07-16Fix most issuesRiku Isokoski2-31/+21
2021-07-15Quick fixRiku Isokoski1-1/+1
2021-07-15New touch handler, with issuesRiku Isokoski1-1/+11
2021-07-14Update touchpad driverRiku Isokoski2-28/+47
2021-06-22Removed an illogical comparison from SystemInfo and St7789 driver (#449)Avamander1-1/+2
* Removed an illogical comparison
2021-06-19Add support for BMA425 acceleration sensor. (#440)JF0024-21/+556
* Add support for BMA425 acceleration sensor.
2021-06-12Fix fallthrough on case statement (#403)Jonathan Vander Mey1-0/+1
2021-06-12Move most of the code from the constructor of the objects statically ↵Jean-François Milants4-5/+10
initialized in main() into Start()/Init() functions to avoid Static Initialization Order Fiasco (https://en.cppreference.com/w/cpp/language/siof). See https://github.com/JF002/InfiniTime/pull/415#issuecomment-859004238.
2021-06-10Minor improvements: use std::make_unique when creating unique_ptr, check the ↵Jean-François Milants1-4/+4
code is running from an IRQ before calling xQueueSendFromISR or xQueueSend)