I think it could work. We have an example in Arduino IDE,
#include <Makeblock.h>
#include <SoftwareSerial.h>
#include <Wire.h>
void setup()
{
}
void loop()
{
buzzerOn();
delay(1000);
buzzerOff();
delay(1000);
}
And in Makeblock.h, the buzzerOn and buzzerOff is defined like this,
// buzzer
#define buzzerOn() DDRE |= 0x04,PORTE |= B00000100
#define buzzerOff() DDRE |= 0x04,PORTE &= B11111011
#else
#define buzzerOn() pinMode(SCL,OUTPUT),digitalWrite(SCL, HIGH)
#define buzzerOff() pinMode(SCL,OUTPUT),digitalWrite(SCL, LOW)