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
The digital load is found here: | |
https://www.aliexpress.com/item/35W-computer-software-online-USB-tester-USB-Discharging-Load-QC2-0-3-0-MTK-PE-Trigger/32707276028.html?spm=a2g0s.9042311.0.0.K9VDeF | |
It uses a binary protocol over the UART for control and data returned. I used the free version of "Device Monitoring Studio" | |
to view the data sent and received from the UART. | |
So far, I have decoded the commands to get the digital load to do things, except for how to compute the checksum byte. | |
Here's what there is so far: | |
------------------------------------------ |
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 "FreeRTOS.h" | |
#define LED1 14 | |
#define LED2 22 | |
TaskHandle_t Task1; | |
TaskHandle_t Task2; | |
void codeForTask1(void *parameter) | |
{ | |
while(1) |