nutki / spike-tools

Utilities for experimenting with Lego Spike Hub
53 stars 12 forks source link

[Question] How did you discover the rpc commands? #6

Open penguix0 opened 2 years ago

penguix0 commented 2 years ago

Hi @nutki,

I was wondering how you discovered this bit of code:

def display_set_pixel(self, x, y, brightness = 9):
    return self.send_message('scratch.display_set_pixel', { 'x':x, 'y': y, 'brightness': brightness})

Specifically the part where you send scratch.display_set_pixel, How did you discover that you can send this and are there more commands to send? Maybe commands for controlling motors or sound?

I'm looking forwards to your reply!

penguix0