Skip to content

Commit dd54bd2

Browse files
committed
feat(vscode): Formatting & esp lib headers
1 parent d0304a9 commit dd54bd2

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed

.vscode/c_cpp_properties.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"env": {
3+
"myDefaultIncludePath": [
4+
"${workspaceFolder}",
5+
"${workspaceFolder}/**"
6+
]
7+
},
8+
"configurations": [
9+
{
10+
"name": "Mac",
11+
"includePath": [
12+
"${workspaceFolder}/**"
13+
],
14+
"defines": [],
15+
"macFrameworkPath": [
16+
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
17+
],
18+
"compilerPath": "/usr/bin/clang",
19+
"cStandard": "c17",
20+
"cppStandard": "c++17",
21+
"intelliSenseMode": "macos-clang-x64",
22+
"configurationProvider": "ms-vscode.cmake-tools"
23+
},
24+
{
25+
"name": "Win32",
26+
"includePath": [
27+
"${workspaceFolder}\\**",
28+
"C:\\Users\\samom\\esp\\esp-idf\\components\\**"
29+
],
30+
"defines": []
31+
}
32+
],
33+
"version": 4
34+
}

.vscode/settings.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"files.associations": {
3-
"flipdot.h": "c"
3+
"flipdot.h": "c",
4+
"freertos.h": "c",
5+
"core-macros.h": "c",
6+
"sdkconfig.h": "c"
47
},
58
"idf.adapterTargetName": "esp32",
69
"idf.espIdfPath": "/Users/samomahony/esp/esp-idf",
@@ -23,5 +26,6 @@
2326
"target/esp32.cfg"
2427
],
2528
"idf.portWin": "COM4",
26-
"C_Cpp.default.compilerPath": "c:\\Users\\samom\\.espressif\\tools\\xtensa-esp32-elf\\esp-12.2.0_20230208\\xtensa-esp32-elf\\bin\\xtensa-esp32-elf-gcc-12.2.0.exe"
29+
"C_Cpp.default.compilerPath": "c:\\Users\\samom\\.espressif\\tools\\xtensa-esp32-elf\\esp-12.2.0_20230208\\xtensa-esp32-elf\\bin\\xtensa-esp32-elf-gcc-12.2.0.exe",
30+
"C_Cpp.formatting": "clangFormat"
2731
}

main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ void app_main()
3030
gpio_set_direction(PIN_BUTTON, GPIO_MODE_INPUT);
3131

3232
// Initialise display
33-
flipdot_init();
33+
flipdot_init();
3434

3535
// Initialise snake game
3636
snake_init();
3737

3838
// A clean board to write after mode changes
3939
dotboard_t clean_board;
40-
fill_off(&clean_board);
40+
fill_on(&clean_board);
4141

4242
// Continually update the display
4343
while (1)

0 commit comments

Comments
 (0)