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 "ff.h" | |
#include "vfs_fat_internal.h" | |
/** | |
* Usage: | |
* // See https://github.com/espressif/esp-idf/blob/b63ec47238fd6aa6eaa59f7ad3942cbdff5fcc1f/examples/storage/sd_card/sdmmc/main/sd_card_example_main.c#L75 | |
* esp_vfs_fat_sdmmc_mount(mount_point, &host, &slot_config, &mount_config, &card); | |
* format_sdcard(card); | |
* // proceed without remounting | |
*/ |
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
I (62080) datoms_generc_protocol: datoms_generic_protocol_get_data: ADAM: Parsing ADAM pkt 43 : #>-4.05-4.15-4.25-4.35+4.45-4.55-4.65-4.75 | |
W (62080) datoms_data_handeling: data_handling_get_pkt: Warning: channel to param conf mismatch detected!! | |
I (62090) datoms_data_handeling: data_handling_get_pkt: got "PM" value | |
I (62100) datoms_data_handeling: data_handling_get_pkt: got "SO2" value | |
I (62100) datoms_firmware_main: hardcodded_config_running_task: data_handle_final_data is: | |
I (62110) datoms_firmware_main: value raw_value | |
I (62120) datoms_firmware_main: {"type":"data","message":{"d":"28:03:2022","t":"16:08:53","i":"1","dp":{"PM":"0.937504","PM_r":"4.050000","SO2":"2.812502","SO2_r":"4.150000","debug":{"errno":"0","sig1":"7","net":"9","mdm":"1","fw_ver":"5.1.2"}}}} | |
I (62140) datoms_firmware_main: send_pkt ---------- {"type":"data","message":{"d":"28:03:2022","t":"16:08:53","i":"1","dp":{"PM":"0.937504","PM_r":"4.050000","SO2":"2.812502","SO2_r":"4.150000","debug":{"errno":"0","sig1":"7","net":"9","mdm":"1"," |
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
/* | |
* List all directories and files recursively inside the given path | |
* as tree view | |
*/ | |
static void list_files_as_tree(char *basePath, const int root) | |
{ | |
/* | |
* Warning: This code requires hell lot of memory (stack) | |
*/ |
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> | |
/* redefine printf for the rest of file. */ | |
#define printf(...) \ | |
do { \ | |
printf("%s: %d:\t", __FILE__, __LINE__);\ | |
printf(__VA_ARGS__);\ | |
} while (0) | |
/* after this point, each call to printf will be replaced by two. */ |
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
#!/bin/bash -v | |
#some code edited from [email protected] | |
#Modified script by https://github.com/rypz79, taken from https://github.com/anbox/anbox/issues/894#issuecomment-420766769 | |
#Tested with SuperSU-v2.82-201705271822 only!! Check test system details in comments. | |
set -e | |
#get zip file and set workdir | |
mkdir -p ~/temp |
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
#!/bin/bash | |
if [ ! -d files ]; then | |
# Make the content | |
echo "Generating root content.." | |
mkdir files | |
echo "$(date)" > files/date.txt | |
echo "Another content" > files/other.txt | |
fi | |
#These config are based by Nand device that you will use! |
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
Format: Log Type - Time(microsec) - Message - Optional Info | |
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic | |
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.2-00066 | |
S - IMAGE_VARIANT_STRING=LAATANAZA | |
S - OEM_IMAGE_VERSION_STRING=debian-server | |
S - Boot Config, 0x000000e1 | |
B - 1216 - PBL, Start | |
B - 3723 - bootable_media_detect_entry, Start | |
B - 4374 - bootable_media_detect_success, Start |
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 <stdlib.h> | |
#include <time.h> | |
#include "datoms_airpurifier_main.h" | |
#include "main_screen.h" | |
void datoms_test_param_update(void); | |
void humidity_update_param(lv_task_t *task); | |
void pm_update_param(lv_task_t *task); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
$ redshift -c ~/.config/redshift.conf | |
; Primary Monitor | |
; Global settings | |
[redshift] | |
temp-day=4200K | |
temp-night=3900k | |
transition=1 | |
;gamma=0.8:0.7:0.8 |
NewerOlder