aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Fix various typosluz paz2022-06-052-3/+3
| | | | Found via `codespell -q 3 -S ./src/libs -L ans,doubleclick,trough`
* Apply clang-format to all C++ filesFinlay Davidson2022-06-057-47/+39
|
* Replace C-style casts with static_castFinlay Davidson2022-06-052-12/+20
|
* Remove lcd from DisplayAppRiku Isokoski2022-05-081-3/+3
|
* Fix large blacklevel step. Lower 25% of shades are now accessible.Riku Isokoski2022-04-292-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.
* Tweak gamma on ST7789 and match UI colorsRiku Isokoski2022-04-252-0/+8
| | | | | This change will increase the color accuracy of the PineTime and make UI development with the simulator easier.
* SpiNorFlash: use C++ style struct in C++ only headerReinhold Gschweicher2022-04-241-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>
* Merge pull request #531 from hatmajster/heart-rate-gain-settingJF2022-01-261-2/+2
|\ | | | | Heart rate sensor - HRS gain changed to x8
| * Hrs3300: changed default gain to x8hatmajster2022-01-251-2/+2
| |
* | changed ReadHrs and ReadAls to uint32, and did static_cast instead of hidden ↵Yehoshua Pesach Wallach2021-12-132-4/+4
| | | | | | | | cast when using it
* | order ReadHrs, ReadAls bitwise according to bit orderingYehoshua Pesach Wallach2021-12-131-2/+2
|/
* Move up file header include to topReinhold Gschweicher2021-11-152-2/+2
|
* Add missing standard includesReinhold Gschweicher2021-11-151-0/+1
|
* Update includes to to be relative to src directoryReinhold Gschweicher2021-11-1514-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.
* Fix unresponsive touch panel after update to 1.7 : don't care if device ids ↵Jean-François Milants2021-11-141-11/+5
| | | | are not the ones we expected (until we know more about these communication and IDs issues).
* Fix formatting following the code review.Jean-François Milants2021-11-071-3/+3
|
* Add data validity check and retries in CST816S driver. See ↵Jean-François Milants2021-11-062-22/+58
| | | | https://github.com/InfiniTimeOrg/InfiniTime/issues/763#issuecomment-962436976.
* Merge pull request #586 from hubmartin/wake-timeJF2021-10-232-11/+0
|\ | | | | Improve wake-up time
| * Merge branch 'develop' into wake-timehubmartin2021-09-165-108/+117
| |\
| * | Remove commented commands completelyhubmartin2021-08-232-11/+0
| | |
| * | Remove LCD reset and more cmds, save over 200mshubmartin2021-08-151-8/+8
| | |
| * | Remove unnecessary pin_set, save 50mshubmartin2021-08-151-2/+2
| | |
* | | Fix Error screen and optimize GetTouchInfoRiku Isokoski2021-09-152-10/+8
| | |
* | | Merge branch 'develop' into update_touch_driverRiku Isokoski2021-09-143-9/+45
|\ \ \ | | |/ | |/|
| * | Merge branch 'develop' into pinmaphubmartin2021-08-294-101/+73
| |\ \
| * | | Rename backlight level pinshubmartin2021-08-041-3/+3
| | | |
| * | | Cleanup, set Pinetime as defaulthubmartin2021-08-031-41/+17
| | | |
| * | | PinMap with namespace and constexprhubmartin2021-08-033-9/+44
| | | |
| * | | DRAFT: Put gpio pins to separate filehubmartin2021-08-022-1/+27
| | |/ | |/|
* | | Merge branch 'develop' into update_touch_driverRiku Isokoski2021-08-284-75/+54
|\ \ \ | | |/ | |/|
| * | Merge branch 'twimaster_rework' of https://github.com/Riksu9000/InfiniTime ↵Jean-François Milants2021-08-282-69/+42
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | into Riksu9000-twimaster_rework # Conflicts: # src/systemtask/SystemTask.cpp
| | * | Use highest frequency and move mutex creation to InitRiku Isokoski2021-08-181-1/+4
| | | |
| | * | Simplify parameters and cleanupRiku Isokoski2021-08-162-45/+17
| | | |
| | * | Don't reconfigure pinsRiku Isokoski2021-08-121-6/+1
| | | |
| | * | Explicitly disable pullupRiku Isokoski2021-08-101-0/+2
| | | |
| | * | Only enable the bus when neededRiku Isokoski2021-08-101-2/+4
| | | |
| | * | Optimize twiMasterRiku Isokoski2021-08-092-22/+21
| | |/
| * | Rework TouchHandler into not a taskRiku Isokoski2021-08-102-10/+5
| | |
| * | UpdateRiku Isokoski2021-07-181-1/+1
| | |
| * | Fix touch wakeup and code cleanupRiku Isokoski2021-07-162-5/+10
| | |
| * | Fix most issuesRiku Isokoski2021-07-162-31/+21
| | |
| * | Quick fixRiku Isokoski2021-07-151-1/+1
| | |
| * | New touch handler, with issuesRiku Isokoski2021-07-151-1/+11
| |/
* | Automatic error detectionRiku Isokoski2021-08-182-2/+7
| |
* | Update touchpad driverRiku Isokoski2021-07-142-28/+47
|/
* Removed an illogical comparison from SystemInfo and St7789 driver (#449)Avamander2021-06-221-1/+2
| | | * Removed an illogical comparison
* Add support for BMA425 acceleration sensor. (#440)JF0022021-06-194-21/+556
| | | * Add support for BMA425 acceleration sensor.
* Fix fallthrough on case statement (#403)Jonathan Vander Mey2021-06-121-0/+1
|
* Move most of the code from the constructor of the objects statically ↵Jean-François Milants2021-06-124-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.
* Minor improvements: use std::make_unique when creating unique_ptr, check the ↵Jean-François Milants2021-06-101-4/+4
| | | | code is running from an IRQ before calling xQueueSendFromISR or xQueueSend)