Skip to content

Commit

Permalink
Settings for RaspPi corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
slviajero committed May 1, 2024
1 parent c011d61 commit 1d26bfe
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Basic2/Posix/basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ const bworkfunction_t workfunctions[] PROGMEM = {
/* errors and messages */
const char mfile[] PROGMEM = "file.bas";
const char mprompt[] PROGMEM = "> ";
const char mgreet[] PROGMEM = "Stefan's Basic 2.0alpha";
const char mgreet[] PROGMEM = "Stefan's Basic 2.0";
const char mline[] PROGMEM = "LINE";
const char mnumber[] PROGMEM = "NUMBER";
const char mvariable[] PROGMEM = "VARIABLE";
Expand Down
2 changes: 1 addition & 1 deletion Basic2/Posix/basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/*
* A few of the buffers and vars come from hardware.h.
* A few of the buffers and vars come from hardware.h. These are
*
* #define BUFSIZE
* #define STACKSIZE
Expand Down
13 changes: 9 additions & 4 deletions Basic2/Posix/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,14 @@ void wiringbegin() {
#endif
#ifdef POSIXPIGPIO
pigpio_pi=pigpio_start("localhost","8888");
printf("** GPIO started with result %d\n", pigpio_pi);
printf("** pigpio version %d.\n", get_pigpio_version(pigpio_pi));
printf("** Hardware revision %d.\n", get_hardware_revision(pigpio_pi));
if (pigpio_pi == 0) {
printf("GPIO started with result %d\n", pigpio_pi);
printf("pigpio version %d.\n", get_pigpio_version(pigpio_pi));
printf("Hardware revision %d.\n", get_hardware_revision(pigpio_pi));
} else {
printf("GPIO failed to start with result %d\n", pigpio_pi);
printf("** Does pigpiod run? ");
}
#endif
}

Expand Down Expand Up @@ -682,7 +687,7 @@ void vgabegin() {
printf("** error reading screen information \n");
return;
}
printf("** detected screen %dx%d, %dbpp \n", vinfo.xres, vinfo.yres, vinfo.bits_per_pixel);
printf("Detected screen %dx%d, %dbpp \n", vinfo.xres, vinfo.yres, vinfo.bits_per_pixel);

/* BASIC currently does 24 bit color only */
memcpy(&orig_vinfo, &vinfo, sizeof(struct fb_var_screeninfo));
Expand Down
2 changes: 1 addition & 1 deletion Basic2/RaspPi/basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ const bworkfunction_t workfunctions[] PROGMEM = {
/* errors and messages */
const char mfile[] PROGMEM = "file.bas";
const char mprompt[] PROGMEM = "> ";
const char mgreet[] PROGMEM = "Stefan's Basic 2.0alpha";
const char mgreet[] PROGMEM = "Stefan's Basic 2.0";
const char mline[] PROGMEM = "LINE";
const char mnumber[] PROGMEM = "NUMBER";
const char mvariable[] PROGMEM = "VARIABLE";
Expand Down
13 changes: 9 additions & 4 deletions Basic2/RaspPi/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,14 @@ void wiringbegin() {
#endif
#ifdef POSIXPIGPIO
pigpio_pi=pigpio_start("localhost","8888");
printf("** GPIO started with result %d\n", pigpio_pi);
printf("** pigpio version %d.\n", get_pigpio_version(pigpio_pi));
printf("** Hardware revision %d.\n", get_hardware_revision(pigpio_pi));
if (pigpio_pi == 0) {
printf("GPIO started with result %d\n", pigpio_pi);
printf("pigpio version %d.\n", get_pigpio_version(pigpio_pi));
printf("Hardware revision %d.\n", get_hardware_revision(pigpio_pi));
} else {
printf("GPIO failed to start with result %d\n", pigpio_pi);
printf("** Does pigpiod run? ");
}
#endif
}

Expand Down Expand Up @@ -682,7 +687,7 @@ void vgabegin() {
printf("** error reading screen information \n");
return;
}
printf("** detected screen %dx%d, %dbpp \n", vinfo.xres, vinfo.yres, vinfo.bits_per_pixel);
printf("Detected screen %dx%d, %dbpp \n", vinfo.xres, vinfo.yres, vinfo.bits_per_pixel);

/* BASIC currently does 24 bit color only */
memcpy(&orig_vinfo, &vinfo, sizeof(struct fb_var_screeninfo));
Expand Down

0 comments on commit 1d26bfe

Please sign in to comment.