WIP
This commit is contained in:
parent
a21f6be431
commit
cdc33514fa
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Linux",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/**"
|
||||
],
|
||||
"defines": [],
|
||||
"compilerPath": "/usr/bin/gcc",
|
||||
"cStandard": "gnu17",
|
||||
"cppStandard": "c++17",
|
||||
"intelliSenseMode": "linux-gcc-x64"
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
|
@ -6,4 +6,4 @@ import gc
|
|||
gc.collect()
|
||||
|
||||
#import connectwifi
|
||||
#import webserver
|
||||
#import webserver
|
|
@ -36,7 +36,7 @@ def main() -> None:
|
|||
if can.reset() != ERROR.ERROR_OK:
|
||||
print("Can not reset for MCP2515")
|
||||
return
|
||||
if can.setBitrate(CAN_SPEED.CAN_250KBPS, CAN_CLOCK.MCP_8MHZ) != ERROR.ERROR_OK:
|
||||
if can.setBitrate(CAN_SPEED.CAN_5KBPS, CAN_CLOCK.MCP_16MHZ) != ERROR.ERROR_OK:
|
||||
print("Can not set bitrate for MCP2515")
|
||||
return
|
||||
if can.setNormalMode() != ERROR.ERROR_OK:
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
Loading…
Reference in New Issue