mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
editor/pybricksMicroPython: add Side to hub template
This is included in pybricks.parameters on all hubs.
This commit is contained in:
committed by
David Lechner
parent
43a6f63eaf
commit
098c8e60ab
@@ -309,7 +309,7 @@ export const language = <monaco.languages.IMonarchLanguage>{
|
||||
function createTemplate(hubClassName: string, deviceClassNames: string[]): string {
|
||||
return `from pybricks.hubs import ${hubClassName}
|
||||
from pybricks.pupdevices import ${deviceClassNames.join(', ')}
|
||||
from pybricks.parameters import Button, Color, Direction, Port, Stop
|
||||
from pybricks.parameters import Button, Color, Direction, Port, Side, Stop
|
||||
from pybricks.robotics import DriveBase
|
||||
from pybricks.tools import wait, StopWatch
|
||||
|
||||
|
||||
@@ -294,7 +294,7 @@ describe('handleExplorerCreateNewFile', () => {
|
||||
{
|
||||
"contents": "from pybricks.hubs import TechnicHub
|
||||
from pybricks.pupdevices import Motor
|
||||
from pybricks.parameters import Button, Color, Direction, Port, Stop
|
||||
from pybricks.parameters import Button, Color, Direction, Port, Side, Stop
|
||||
from pybricks.robotics import DriveBase
|
||||
from pybricks.tools import wait, StopWatch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user