Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 5 additions & 34 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,19 @@
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"macFrameworkPath": [

]
},
{
"name": "Linux",
"includePath": [],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
},
{
"name": "Windows",
"includePath": [
"${workspaceFolder}",
"C:/Program Files (x86)/Microchip/xc8/v1.45/include/*",
"C:/Program Files (x86)/Microchip/xc8/v1.45/include/legacy/*"
"C:/Program Files (x86)/Microchip/xc8/v2.10/pic/include/*",
"C:/Program Files (x86)/Microchip/xc8/v2.10/pic/include/legacy/*"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"${workspaceFolder}",
"C:/Program Files (x86)/Microchip/xc8/v1.45/include/*",
"C:/Program Files (x86)/Microchip/xc8/v1.45/include/legacy/*"
"C:/Program Files (x86)/Microchip/xc8/v2.10/pic/include/*",
"C:/Program Files (x86)/Microchip/xc8/v2.10/pic/include/legacy/*"
],
"databaseFilename": "",
"limitSymbolsToIncludedHeaders": true
Expand All @@ -51,5 +22,5 @@
"cppStandard": "c++17"
}
],
"version": 3
"version": 4
}
10 changes: 0 additions & 10 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@
"16f84" // Update this to Chip you're targeting.
]
}
},
{
"label": "Build Samples",
"type": "shell",
"windows": {
"command": ".\\Build-Samples",
"args": [
"16f84" // Update this to Chip you're targeting.
]
}
}
]
}
4 changes: 0 additions & 4 deletions Build-Samples.cmd

This file was deleted.

2 changes: 1 addition & 1 deletion Build.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

mkdir output

%XC_DIR%\xc8.exe --chip=%1 --outdir=".\output" ".\main.c"
xc8.exe --chip=%1 --outdir=".\output" ".\main.c"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## XC8.exe SHOULD BE ON THE PATH!!!

## PIC MCU on VSCode:

This repository contains configuration files to setup development environment for PIC Microcontrollers with Microchip XC compiler on Visual Studio Code.
Expand Down
6 changes: 6 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#include <xc.h>
#include <pic16f84a.h>

#define _XTAL_FREQ 1000000 // 1Mhz



void main() {

Expand Down
22 changes: 0 additions & 22 deletions samples/LedBlink.c

This file was deleted.