0

所以我已经开始着手编程一些东西,每当我收到一封电子邮件时,它会切换 GPIO 以打开 LED,有人可以帮我弄清楚如何在我的 Raspberry Pi 上切换 GPIO。这是我到目前为止所拥有的

import imaplib

mail = imaplib.IMAP4_SSL('imap.gmail.com')

mail.login('mygmail@gmail.com','mypassword')
4

1 回答 1

0

根据使用 GPIO,有一个项目raspberry-gpio-python,一个提供对 raspberry-pi GPIO 的访问的 python 库,在此处查找示例:https ://code.google.com/p/raspberry-gpio-python/wiki/BasicUsage

根据检查您的电子邮件收件箱,您可以在 StackOverflow 上找到重复的问题,例如看看这个简单的问题:Check unread count of Gmail messages with Python

于 2013-06-02T16:26:33.513 回答