Skip to content

Commit

Permalink
fix: Fix BluePill Board onboard LED polarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
lcgamboa committed Aug 18, 2024
1 parent a2eff07 commit 1346954
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ PACKAGE=picsimlab
MAINVER=0
MINORVER=9
VERSION=0.9.2
DATE=240803
DATE=240818
VERSION_STABLE=0.9.1
2 changes: 1 addition & 1 deletion src/boards/board_Blue_Pill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ void cboard_Blue_Pill::Draw(void) {
switch (output[i].id) // search for color of output
{
case O_LED: // White using pc13 mean value
PICSimLab.CanvasCmd({.cmd = CC_SETCOLOR, .SetColor{(unsigned int)pins[1].oavalue, 0, 0}});
PICSimLab.CanvasCmd({.cmd = CC_SETCOLOR, .SetColor{(unsigned int)(310 - pins[1].oavalue), 0, 0}});
break;
case O_LPWR: // Blue using mcupwr value
PICSimLab.CanvasCmd(
Expand Down
1 change: 1 addition & 0 deletions src/boards/bsim_qemu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@ void bsim_qemu::EvThreadRun(void) {
strcpy(argv[(argc)++], "-S");
PICSimLab.SetDebugStatus(1);
PICSimLab.SetCpuState(CPU_WAITING_GDB);
printf("PICSimLab: Waiting for GDB connection ...\n");
}

if (PICSimLab.GetDebugStatus()) {
Expand Down

0 comments on commit 1346954

Please sign in to comment.