From 6ce6237455703674daf3e4f0c05f6c4dc69cd7ac Mon Sep 17 00:00:00 2001 From: Vincent Poulailleau Date: Mon, 23 May 2022 10:46:17 +0200 Subject: [PATCH] add syntax highlighting, fix python indentation --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e488cf5..108294c 100644 --- a/README.md +++ b/README.md @@ -44,14 +44,14 @@ dtoverlay=pi3-disable-bt * install python library for Makeblock - ``` + ```sh sudo pip install megapi ``` * the initial code for python. -``` - from megapi import * - bot = MegaPi() - bot.start() #if using usb cable, need to call bot.start('/dev/ttyACM0') +```python +from megapi import * +bot = MegaPi() +bot.start() #if using usb cable, need to call bot.start('/dev/ttyACM0') ``` * python your code @@ -149,4 +149,4 @@ dtoverlay=pi3-disable-bt * **focusOn** ( port ) * **focusOff** ( port ) -###Learn more from Makeblock official website: www.makeblock.com \ No newline at end of file +### Learn more from Makeblock official website: www.makeblock.com