Skip to content

Commit

Permalink
cleanup print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
angelom93 committed Jan 10, 2024
1 parent c829d65 commit ac9d6dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esp.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def write(self, path: str, value: Union[str, int]) -> None:

@contextmanager
def pin_config(self) -> None:
print('Configuring pins...>>>>')
print('Configuring pins...')
self.write('export', self.en)
sleep(0.5)
self.write('export', self.g0)
Expand All @@ -49,7 +49,7 @@ def pin_config(self) -> None:

@contextmanager
def flash_mode(self):
print('Bringing microcontroller into flash mode...>>>>>')
print('Bringing microcontroller into flash mode...')
self.write(f'{self.gpio_en}/value', self.on)
sleep(0.5)
self.write(f'{self.gpio_g0}/value', self.on)
Expand All @@ -60,7 +60,7 @@ def flash_mode(self):
self.activate()

def activate(self) -> None:
print('Bringing microcontroller into normal operation mode...>>>>>>')
print('Bringing microcontroller into normal operation mode...')
self.write(f'{self.gpio_g0}/value', self.off)
sleep(0.5)
self.write(f'{self.gpio_en}/value', self.on)
Expand Down

0 comments on commit ac9d6dd

Please sign in to comment.