Click here to Skip to main content
15,887,596 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Computer Science ranked as one of 20th most useless degree major Pin
Timothy Dean Mobile-Speed26-Sep-23 5:26
professionalTimothy Dean Mobile-Speed26-Sep-23 5:26 
GeneralRe: Computer Science ranked as one of 20th most useless degree major Pin
Juan Pablo Reyes Altamirano26-Sep-23 5:26
Juan Pablo Reyes Altamirano26-Sep-23 5:26 
GeneralRe: Computer Science ranked as one of 20th most useless degree major Pin
Steve Naidamast26-Sep-23 6:12
professionalSteve Naidamast26-Sep-23 6:12 
GeneralRe: Computer Science ranked as one of 20th most useless degree major Pin
GabeFC26-Sep-23 6:28
GabeFC26-Sep-23 6:28 
GeneralRe: Computer Science ranked as one of 20th most useless degree major Pin
Norm Powroz26-Sep-23 19:13
Norm Powroz26-Sep-23 19:13 
GeneralRe: Computer Science ranked as one of 20th most useless degree major Pin
Rationist26-Sep-23 19:13
Rationist26-Sep-23 19:13 
GeneralRe: Computer Science ranked as one of 20th most useless degree major Pin
David On Life27-Sep-23 12:44
David On Life27-Sep-23 12:44 
GeneralSo this is pretty neat, and I'm feeling pretty good about it. Pin
honey the codewitch24-Sep-23 10:14
mvahoney the codewitch24-Sep-23 10:14 
the little screen that says hello world (image linked to below) is an emulated ST7789 display controller connected over a virtual SPI bus, running arduino code. The arduino code thinks it's talking to a real LCD screen, but its not. It's talking to my little DLL that acts like hardware.

C++
void* hw_screen = hardware_load(LIB_SPI_SCREEN); // ".\\winduino_spi_screen.dll"
if(hw_screen==nullptr) {
    Serial.println("Unable to load external SPI screen");
}
struct {
    uint16_t width;
    uint16_t height;
} screen_size = {240,135};
struct {
    int16_t x;
    int16_t y;
} screen_offsets = {40,53};
hardware_attach_log(hw_screen);
if(!hardware_configure(hw_screen,SPI_SCREEN_PROP_RESOLUTION,&screen_size,sizeof(screen_size))) {
    Serial.println("Unable to configure hardware");
}
if(!hardware_configure(hw_screen,SPI_SCREEN_PROP_OFFSETS,&screen_offsets,sizeof(screen_offsets))) {
    Serial.println("Unable to configure hardware");
}
hardware_set_pin(hw_screen,15, SPI_SCREEN_PIN_BKL);    
hardware_set_pin(hw_screen,5, SPI_SCREEN_PIN_CS);
hardware_set_pin(hw_screen,2,SPI_SCREEN_PIN_DC);
hardware_set_pin(hw_screen,4,SPI_SCREEN_PIN_RST);


It lives![^]

From there you can communicate with it like a normal SPI device, where it listens for particular commands coming over the bus and updates the display accordingly like a real ILI9341 or ST7789 chip would do.

I love writing emulators. Big Grin | :-D
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: So this is pretty neat, and I'm feeling pretty good about it. Pin
AndyChisholm24-Sep-23 20:16
AndyChisholm24-Sep-23 20:16 
GeneralRe: So this is pretty neat, and I'm feeling pretty good about it. Pin
Ponytail Bob26-Sep-23 3:45
Ponytail Bob26-Sep-23 3:45 
GeneralOriginal 1977 Byte Mag, Apple-II article by Woz Pin
raddevus24-Sep-23 5:40
mvaraddevus24-Sep-23 5:40 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
Mike Hankey24-Sep-23 6:24
mveMike Hankey24-Sep-23 6:24 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
honey the codewitch24-Sep-23 11:19
mvahoney the codewitch24-Sep-23 11:19 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
Mike Hankey24-Sep-23 11:24
mveMike Hankey24-Sep-23 11:24 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
honey the codewitch24-Sep-23 12:42
mvahoney the codewitch24-Sep-23 12:42 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
Mike Hankey24-Sep-23 13:37
mveMike Hankey24-Sep-23 13:37 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
honey the codewitch24-Sep-23 13:45
mvahoney the codewitch24-Sep-23 13:45 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
jschell25-Sep-23 7:59
jschell25-Sep-23 7:59 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
jschell25-Sep-23 7:47
jschell25-Sep-23 7:47 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
honey the codewitch25-Sep-23 11:51
mvahoney the codewitch25-Sep-23 11:51 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
jschell26-Sep-23 4:36
jschell26-Sep-23 4:36 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
honey the codewitch26-Sep-23 4:57
mvahoney the codewitch26-Sep-23 4:57 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
honey the codewitch24-Sep-23 11:18
mvahoney the codewitch24-Sep-23 11:18 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
jmaida24-Sep-23 14:12
jmaida24-Sep-23 14:12 
GeneralRe: Original 1977 Byte Mag, Apple-II article by Woz Pin
honey the codewitch25-Sep-23 2:47
mvahoney the codewitch25-Sep-23 2:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.