Programming PICs with Arduino

Hello there,
Quick question, when uploading arduino sketches to other PICs such as ATTINY (using arduino as a ISP) do the library's carry other as well such as SPI library? Therefore, if I uploaded this to an ATTINY will it work the same way as the arduino?

#include "SPI.h"
const int ss = 10;
const int del = 20;

void setup() {
// put your setup code here, to run once:
pinMode(ss, OUTPUT);
digitalWrite(ss, HIGH);

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(ss, LOW);
digitalWrite(ss, HIGH);
while (1);

ATtiny and PIC are two different microcontroller architectures. Are you using an ATtiny or a PIC?


No, it won't work. You will need to use software SPI with the ATtiny13.