Clarification about Arduino Atmega and AVR Programmer

Robofarmer:
Ha ha, nobody seems to know what to respond. I'm a little confused too.
Why all the questions about ATmega if your chip is a PIC?
AVR and PIC are two different animals. Have you googled "How to program PIC"? I'm pretty sure an AVR programmer is not going to do it, there are programmers specifically for PIC.

Hi Robofarmer,

Thank you for your answer.

The question is, can I use NewPing Ultrasonic Sensor library for "Arduino" with a standalone ATmega and other chips like PIC from microchip?

Or the library is written specifically for "Arduino ATMega" and won't work with different chips?

Yes, I googled "How to program PIC" and i saw different functions names being used for the blinking example. I thought every Chip will have its own basic library for I/O pin modes operations.

It was my pleasure to read your answer, and it was very useful to me.