1. Open the Terminal App, on the command line type:
and hit return.
2. Type
and hit return, this should show you a list like the screenshot below.
3. Type
and hit return, this will invoke the vim editor to edit the file.
4. In the editor type
and hit return. This will turn on line numbering.
5. Move your cursor down to line 29, it will look like the screenshot below except it will not yet have the # in front commenting it out. Make sure your cursor is right next to the first i in line 29.
6. Type
this will enter INSERT mode, and at the bottom of the screen you will see
as in screenshot below.
7: Type
to comment line 29, then move the cursor to line 30 and comment that one.
8. Move the cursor to line 31 and hit return to shift down. Then type or paste in the two revised lines,
as in the screen shot below.
9. Hit the escape key (esc) and then type
, as in the screen shot below. This will write out the file and quit the editor.
Code:
cd ~/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.3/tools/pyserial/serial/tools/
2. Type
Code:
ls
3. Type
Code:
vim list_ports_osx.py
4. In the editor type
Code:
:set number
5. Move your cursor down to line 29, it will look like the screenshot below except it will not yet have the # in front commenting it out. Make sure your cursor is right next to the first i in line 29.
6. Type
Code:
i
Code:
-- INSERT --
7: Type
Code:
#
8. Move the cursor to line 31 and hit return to shift down. Then type or paste in the two revised lines,
Code:
iokit = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/IOKit.framework/IOKit')
cf = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation')
9. Hit the escape key (esc) and then type
Code:
:wq
Last edited: